jasperexception请求无法解析

时间:2011-06-15 17:09:16

标签: jsp

我有两个文件:

ShortCatalog.jsp:

<form method="POST" action="ShortWroxShopController.jsp">
    <input type="submit" value="Add to cart" name="AddToCartButton" />
    <input type="hidden" value="1861004958" name="ISBN" />
    <input type="hidden" value="AddToCart" name="Action" />
</form>

ShortWroxShopController.jsp:

<%  String action = request.getParameter("Action");
    String ISBN   = reguest.getParameter("ISBN");
%>

<%=action %>

当我点击“添加到购物车”按钮时,我得到:

org.apache.jasper.JasperException: Unable to compile class for JSP: 

An error occurred at line: 3 in the jsp file: /ShortWroxShopController.jsp
reguest cannot be resolved
1: 
2: <%  String action = request.getParameter("Action");
3:     String ISBN   = reguest.getParameter("ISBN");
4: %>
5: 
6: <%=action %>

请帮忙。谢谢!

1 个答案:

答案 0 :(得分:0)

request q而不是g。与您在上面的线中成功使用的完全相同。

enter image description here


对于具体问题

无关,您应该优先考虑Servlet而不是JSP作为控制器。