aspose file tools*
The moose likes Servlets and the fly likes error page for exceptions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "error page for exceptions" Watch "error page for exceptions" New topic
Author

error page for exceptions

pooja jain
greenhorn
Ranch Hand

Joined: Jan 12, 2005
Posts: 213
i know how to set error page for different error codes in web.xml. can we set error page for different kinds of exception?


:d
Shahnawaz Shakil
Ranch Hand

Joined: Aug 04, 2008
Posts: 57
Yes...

<error-page>
<exception-type>java.sql.SQLException</exception-type>
<location>sqlexception.jsp</location>
<error-paga>
Shahnawaz Shakil
Ranch Hand

Joined: Aug 04, 2008
Posts: 57
sorry....last line is the proof of my fast typing speed

<error-page>
<exception-type>java.sql.SQLException</exception-type>
<location>sqlexception.jsp</location>
</error-page>
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61064
    
  66

Originally posted by Shahnawaz Shakil:
sorry....last line is the proof of my fast typing speed

You can always correct errors by clicking the .


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Muhammad Safwat
Greenhorn

Joined: Aug 12, 2008
Posts: 12
remmember to set the error attribute in the target jsp to true


http://www.thejavacode.com/
 
Don't get me started about those stupid light bulbs.
 
subject: error page for exceptions