Attribute value "xx" is quoted with " which must be escaped when used within the

来源:互联网 发布:java多线程计算器 编辑:程序博客网 时间:2024/05/20 04:50
此问题是由于tomcat5.5.28及以上版本升级引起。


1.       可以修改代码如下:

<jsp:include page="fastpost.jsp">
    <jsp:param name="returl" value='<%=Url.encode(“***”) %>' />
</jsp:include>

类似比如<input type="text" value='<%=request.getParameter("username")%>'这样。


2.       可以在catalina.sh中加入

JAVA_OPTS="-Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false"


3.       或者可以在Tomcat的Java Options中加入

-Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false

如图所示:




0 0