simple error due to use of double quotes in a jsp file

前端 未结 7 1682
清酒与你
清酒与你 2020-12-14 00:36

I have the following line of code in a JSP File in my web app that is giving an error:



        
7条回答
  •  死守一世寂寞
    2020-12-14 00:54

    You should use single quotes on the value parameter, ie:

    value='<%=request.getParameter("userName")%>'
    

    or set the org.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING parameter to false as described here:

    http://blogs.sourceallies.com/2009/10/strict-quote-escaping-in-tomcat/

提交回复
热议问题