`
xiaotian_ls
  • 浏览: 300315 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论

Attribute value request.getAttribute("id") is quoted with " which must be

    博客分类:
  • JAVA
阅读更多
<eoms:roomusr id="listUsr" name="listUsr" roomId="<%=request.getParameter("id")%>" style="position:static;font-size:9pt" size="8"></eoms:roomusr>

报错:Attribute value request.getAttribute("id") is quoted with " which must be escaped when used within the value

遇到这样的问题在网上找了解决方案现总结2点:

解决以上问题有两种解决方案:

方案一

这么改写:
<eoms:roomusr id="listUsr" name="listUsr" roomId="<%=request.getParameter(\"id\")%>" style="position:static;font-size:9pt" size="8"></eoms:roomusr>

方案二
归根结底是tomcat版本的问题
tomcat5.5.20之后的版本都存在这个问题,把tomcat换成tomcat5.5.20问题就没有了.
0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics