File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.Throwable in web.xml

 
Neeraj Vij
Ranch Hand
Posts: 315
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have given in my web.xml to catch any handled exception in my struts 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.


Many Thanks,
Neeraj
 
Harpreet Singh janda
Ranch Hand
Posts: 317
Eclipse IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In case of Struts this setting should be in struts.xml instead of web.xml
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64181
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
 
Hebert Coelho
Ranch Hand
Posts: 754
Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic