• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet call jsp error page

 
suman deb
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

How can a Servlet call a JSP error page ?

(a) This capability is not supported.
(b) When the servlet throws the exception, it will automatically be caught by the calling JSP page.
(c) The servlet needs to forward the request to the specific error page URL. The exception is passed along as an attribute named "javax.servlet.jsp.jspException".
(d) The servlet needs to redirect the response to the specific error page, saving the exception off in a cookie.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suman,

A Javaranch Tip:
Whenever someone post a series of questions like this (especially multiple choice questions) most people (myself included) assume that they have been cut and pasted from a homework assignment.

I seem to recall a list of questions that looked exactly like that in the not too distant past.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic