This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 60789
    
  65

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/
 
Consider Paul's rocket mass heater.
 
subject: error page for exceptions
 
Similar Threads
WAS 3.5 Default Error Page
Problem with deployment-descriptor's error-page mapping
Exception Management in a web applications
j_security_check and weblogic
Exception in Bean creation