Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error page for exceptions

 
pooja jain
greenhorn
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i know how to set error page for different error codes in web.xml. can we set error page for different kinds of exception?
 
Shahnawaz Shakil
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes...

<error-page>
<exception-type>java.sql.SQLException</exception-type>
<location>sqlexception.jsp</location>
<error-paga>
 
Shahnawaz Shakil
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64708
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Shahnawaz Shakil:
sorry....last line is the proof of my fast typing speed

You can always correct errors by clicking the .
 
Muhammad Safwat
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
remmember to set the error attribute in the target jsp to true
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic