• Post Reply Bookmark Topic Watch Topic
  • New Topic

Exceptions in JSP

 
sitaram irrinki
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where can we include the information abt. the
Exceptions in web.xml if we don't specify the
attributes "isErrorPage" and "errorPage".?
Under which tag
 
Kartik Patel
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Write


<error-page>
<exception-type>xyz</exception-type>
<location>abc.jsp</location>
</error-page>

but you have to make abc.jsp as your error page by writing
<%@page errorpage="true"%>

otherwise it won't work
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!