Maybe I'm just sleepy - but where did you put that code?  It's not java.



On Mon, Mar 23, 2009 at 1:00 AM, Jan Kriesten <[email protected]>wrote:

>
> Hi Jeremy,
>
> > Can you mount another filter that, if Wicket does not respond, instead
> > responds with either a valid page or a redirect back to a valid Wicket
> page?
>
> no, that's no option. I got the ErrorPage-Version working in the way that I
> manually set the status code with
>
> val uri = req.getAttribute( "javax.servlet.error.request_uri"
> ).asInstanceOf[String]
> if( uri!=null ) {
>  val res = getResponse.asInstanceOf[WebResponse].getHttpServletResponse
>  res.setStatus( 200 )
> }
>
> That way you get a 200 on the client.
>
> Best regards, --- Jan.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to