You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by bipul <bi...@gmail.com> on 2009/08/13 06:08:49 UTC

Re: How to handle Runtime Exception in wicket?

igor 
how to redirect to external url say www.google.com in case runtimeexception
occurs




igor.vaynberg wrote:
> 
> see requestcycle.onruntimeexception()
> 
> -igor
> 
> 
> On Jan 16, 2008 10:22 AM, Rama-o-Rama  wrote:
>>
>>
>>
>> Rama-o-Rama wrote:
>> >
>> > Hello,
>> >
>> > I am trying to handle to the runtime exception in Wicket, by default in
>> > the deployment mode it throws internal error.
>> >
>> > I want to redirect it to my error.jsp on my WEB-INF folder.
>> >
>> > this is what i am doing in my web.xml file
>> >
>> > 
>> >               java.lang.Exception
>> >               
>> >               /error.jsp
>> >       
>> >
>> >
>> > Problem: I still the see the internal error page not the error.jsp
>> page.
>> >
>> > Thanks
>> > Rama
>> >
>>
>>
>> Still waiting for the reply
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/How-Runtime-Exception-Handling--tp14869906p14888029.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-Runtime-Exception-Handling--tp14869906p24948499.html
Sent from the Wicket - User mailing list archive at Nabble.com.

SV: How to handle Runtime Exception in wicket?

Posted by Wilhelmsen Tor Iver <To...@arrive.no>.
> how to redirect to external url say www.google.com in case
> runtimeexception
> occurs

You need to "drill down" to the HttpServletResponse and call sendRedirect().

- Tor Iver

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org