日期:2014-05-20  浏览次数:20816 次

纠结的问题:我做的一个网上竞拍的系统,在自己的电脑上运行完全OK,到了别人电脑上运行,就出错了,报错的代码位置我实在看不出错在哪里...
<%
final String jspUrl="GoodListServlet";
 %>
<jsp:include page="splitpage.jsp">
<jsp:param name="jspUrl" value="<%=jspUrl%>"/>
<jsp:param name="lineSize" value="<%=request.getAttribute("lineSize")%>"/>
<jsp:param name="allRecorders" value="<%=request.getAttribute("allRecorders")%>"/>
<jsp:param name="keyWord" value="<%=request.getAttribute("keyWord")%>"/>
<jsp:param name="currentPage" value="<%=request.getAttribute("currentPage")%>"/>
</jsp:include>


严重: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /goodlist.jsp(25,38) Attribute value request.getAttribute("lineSize") is quoted with " which must be escaped when used within the value
我看不出这个地方有什么错,而且在我电脑上360浏览器下,是没问题的。
别人也用的是360浏览器却抛出了这个异常。。。
求指点~

------解决方案--------------------
"<%=request.getAttribute("lineSize")%>"

"<%=request.getAttribute('lineSize')%>"