You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Rama-o-Rama <pr...@yahoo.com> on 2008/01/16 19:22:57 UTC

Re: How to handle Runtime Exception in wicket?



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
> 
> <error-page>
> 		<exception-type>java.lang.Exception</exception-type>
> 		<!-- Displays a stack trace -->
> 		<location>/error.jsp</location>
> 	</error-page>
> 
> 
> 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


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


Re: How to handle Runtime Exception in wicket?

Posted by bipul <bi...@gmail.com>.
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.

Re: How to handle Runtime Exception in wicket?

Posted by Igor Vaynberg <ig...@gmail.com>.
see requestcycle.onruntimeexception()

-igor


On Jan 16, 2008 10:22 AM, Rama-o-Rama <pr...@yahoo.com> 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
> >
> > <error-page>
> >               <exception-type>java.lang.Exception</exception-type>
> >               <!-- Displays a stack trace -->
> >               <location>/error.jsp</location>
> >       </error-page>
> >
> >
> > 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


RE: How to handle Runtime Exception in wicket?

Posted by Rama-o-Rama <pr...@yahoo.com>.
thanks William and Igor

Rama


Hoover, William wrote:
> 
> In your WebApplication...
> 
> getApplicationSettings().setPageExpiredErrorPage(PageExpiredErrorPage.class);
> getApplicationSettings().setAccessDeniedPage(AccessDeniedPage.class);
> getApplicationSettings().setInternalErrorPage(InternalErrorPage.class);
> 
> // show internal error page rather than default developer page
> getExceptionSettings().setUnexpectedExceptionDisplay(IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE);
> 
> http://cwiki.apache.org/confluence/x/FyMB
> 
> -----Original Message-----
> From: Rama-o-Rama [mailto:praveenhm4@yahoo.com]
> Sent: Wednesday, January 16, 2008 1:23 PM
> To: users@wicket.apache.org
> Subject: Re: How to handle Runtime Exception in wicket?
> 
> 
> 
> 
> 
> 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
>> 
>> <error-page>
>> 		<exception-type>java.lang.Exception</exception-type>
>> 		<!-- Displays a stack trace -->
>> 		<location>/error.jsp</location>
>> 	</error-page>
>> 
>> 
>> 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--tp14869906p14908684.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


[OT] Re: How to handle Runtime Exception in wicket?

Posted by Dmitry Kandalov <no...@gmail.com>.
On Wednesday 16 January 2008 22:40:52 Hoover, William wrote:
> In your WebApplication...
>
> getApplicationSettings().setPageExpiredErrorPage(PageExpiredErrorPage.class
>); getApplicationSettings().setAccessDeniedPage(AccessDeniedPage.class);
> getApplicationSettings().setInternalErrorPage(InternalErrorPage.class);
>
> // show internal error page rather than default developer page
> getExceptionSettings().setUnexpectedExceptionDisplay(IExceptionSettings.SHO
>W_INTERNAL_ERROR_PAGE);
>
> http://cwiki.apache.org/confluence/x/FyMB

Just in case you didn't see there is similar entry here 
http://cwiki.apache.org/confluence/display/WICKET/FAQs


Dima

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


RE: How to handle Runtime Exception in wicket?

Posted by "Hoover, William " <wh...@nemours.org>.
In your WebApplication...

getApplicationSettings().setPageExpiredErrorPage(PageExpiredErrorPage.class);
getApplicationSettings().setAccessDeniedPage(AccessDeniedPage.class);
getApplicationSettings().setInternalErrorPage(InternalErrorPage.class);

// show internal error page rather than default developer page
getExceptionSettings().setUnexpectedExceptionDisplay(IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE);

http://cwiki.apache.org/confluence/x/FyMB

-----Original Message-----
From: Rama-o-Rama [mailto:praveenhm4@yahoo.com]
Sent: Wednesday, January 16, 2008 1:23 PM
To: users@wicket.apache.org
Subject: Re: How to handle Runtime Exception in wicket?





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
> 
> <error-page>
> 		<exception-type>java.lang.Exception</exception-type>
> 		<!-- Displays a stack trace -->
> 		<location>/error.jsp</location>
> 	</error-page>
> 
> 
> 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