for example InternalErrorPage already does that:
protected void configureResponse()
{
super.configureResponse();
getWebRequestCycle().getWebResponse().getHttpServletResponse().setStatus(
HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
}
and we have 2:
AbortWithWebErrorCodeException
AbortWithHttpStatusException
why 2? i dont know i think we need to clean up here.... (eelco? igor? who
was first ;) )
johan
On Wed, May 7, 2008 at 9:30 AM, Java Programmer <[EMAIL PROTECTED]>
wrote:
> Hello,
> How can I generate 403 Forbidden or other codes (404 etc.) on
> Exception? I think I should set headers and set redirect to true, but
> anyone have working example?
>
> Best regards,
> Adr
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>