你们如何阻止共同财产计划的执行?
我有联合材料,用“前线”的方式将用户点上下。
public boolean kickIfNotLoggedIn(
HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
//code to check if user is logged in
req.getRequestDispatcher(
ACCESS_DENIED_PAGE).forward(request, response);
}
在我的联合调查组中,我有这一代码,即任何超文本产出:
<%
//loginHelper.kickIfNotLoggedIn(request, response);
if (!loginHelper.kickIfNotLoggedIn(request, response)) {
return;
}
%>
如果我不使用返回声明,联合调查组将继续处理,我收到Null PointerException。 如果我使用返回声明(如在净值各种来源上通常建议的那样),我就会发现非法国家:
StandardWrapperValve[jsp]: PWC1406: Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException: PWC3991: getOutputStream() has already been called for this response
at org.apache.coyote.tomcat5.CoyoteResponse.getWriter(CoyoteResponse.java:717)
at org.apache.coyote.tomcat5.CoyoteResponseFacade.getWriter(CoyoteResponseFacade.java:226)
at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:187)
任何关于如何确定这种说法的想法,或实现一个被否定的页面访问的另一种方式?
增 编