<jsp:setPropertyname="entry"property="itemID"value="<%=request.getPar

发布时间:2019-08-11 05:43:24

这样写不对吗?
提示错误:
org.apache.jasper.JasperException: /testbean/SaleEntry.jsp(16,66) Attribute value request.getParameter("itemID") is quoted with " which must be escaped when used within the value

我改成<jsp:setProperty name="entry" property="itemID" param="itemID" />
结果就对了。。郁闷啊,为什么用value会报错打不开。

推荐回答

你的value用的是双引号,然后itemID外面又是双引号,然后jsp解析的时候出错了。把里面的一层双引号改成单引号试试。人家都提示了英文错误,你应该学会理解。
以上问题属网友观点,不代表本站立场,仅供参考!