simple error due to use of double quotes in a jsp file
问题 I have the following line of code in a JSP File in my web app that is giving an error: <jsp:setProperty name="db" property="userName" value="<%=request.getParameter("userName")%>"/> The error message that I get is: org.apache.jasper.JasperException: /loginbean.jsp(6,59) Attribute value request.getParameter("userName") is quoted with " which must be escaped when used within the value What I read on some sites is that characters like ' (single quote) or " (double quote) need to be prefixed with