Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
java.lang.Throwable in web.xml
Joined: Nov 25, 2003
Oct 11, 2010 03:48:25
I have given
in my web.xml to catch any handled exception in my
based application and redirect the user to an error page.
But in some cases, it does not redirect the user to error page. instead the exception message is printed on the broken jsp.
Kindly advise, what could be reason for it and what else should be done in case any error occurs while processing the jsp and redirect the user to an error page.
Harpreet Singh janda
Joined: Jan 14, 2010
Oct 11, 2010 07:35:25
In case of Struts this setting should be in struts.xml instead of web.xml
Author and ninkuma
Joined: Jan 10, 2002
Oct 11, 2010 10:20:14
Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
Asking smart questions
Books by Bear
Joined: Jul 14, 2010
Oct 11, 2010 10:47:13
Hello, Neeraj Vij.
Sometimes there is a problem running it at IE. There is a workarround in my signature that shows how to handle exceptions.
Can you show us the complete exception tags at you web.xml?
Full WebApplication JSF EJB JPA JAAS with source code to download
One Table Per SubClass
subject: java.lang.Throwable in web.xml
process errors of user defined URL
error-page element in web.xml
JSP-Error Page HF Servlets &JSP Page 594
Displaying a Default Error page
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013