Author: ehillenius Date: Sun Apr 15 19:14:33 2007 New Revision: 529119 URL: http://svn.apache.org/viewvc?view=rev&rev=529119 Log: better flow
Modified: incubator/wicket/trunk/wicket/src/main/java/wicket/protocol/http/WebRequestCycleProcessor.java Modified: incubator/wicket/trunk/wicket/src/main/java/wicket/protocol/http/WebRequestCycleProcessor.java URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/main/java/wicket/protocol/http/WebRequestCycleProcessor.java?view=diff&rev=529119&r1=529118&r2=529119 ============================================================================== --- incubator/wicket/trunk/wicket/src/main/java/wicket/protocol/http/WebRequestCycleProcessor.java (original) +++ incubator/wicket/trunk/wicket/src/main/java/wicket/protocol/http/WebRequestCycleProcessor.java Sun Apr 15 19:14:33 2007 @@ -27,8 +27,8 @@ import wicket.PageParameters; import wicket.RequestCycle; import wicket.Session; -import wicket.protocol.http.request.WebErrorCodeResponseTarget; import wicket.protocol.http.request.WebRequestCodingStrategy; +import wicket.protocol.http.servlet.AbortWithWebErrorCodeException; import wicket.request.AbstractRequestCycleProcessor; import wicket.request.IRequestCodingStrategy; import wicket.request.RequestParameters; @@ -132,7 +132,7 @@ // : deny the request log.error(msg + " [request=" + requestCycle.getRequest() + ",target=" + target + ",session=" + Session.get() + "]"); - target = new WebErrorCodeResponseTarget(HttpServletResponse.SC_FORBIDDEN, msg); + throw new AbortWithWebErrorCodeException(HttpServletResponse.SC_FORBIDDEN, msg); } return target; }