JSP Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 821 Page Views: 

How can I invoke a JSP error page from a servlet?



Posted By: Avi Date: 9 November 2010 01:39:57 AM
 Answer:

By creating a request dispatcher for the JSP error page, and pass the exception object as a javax.servlet.jsp.jspException request attribute.


Posted By: avibtech


Date: 9 November 2010 01:39:57 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image vRcbID
Related Questions
JSP : Can I use multiple HTML form elements with the same name?

Can I use multiple HTML form elements with the same name?

Yes. The issue is that only one action class can be associated with a single form. So the real issue....
Category: JSP Date: 11/5/2010 9:30:00 PM
JSP :  What is Servlet chaining?

What is Servlet chaining?

Servlet chaining is a technique in which two or more servlets can cooperate in servicing a single re....
Category: JSP Date: 11/5/2010 8:57:58 PM
JSP :  What are the different types of ServletEngines?

 What are the different types of ServletEngines?

1: Standalone ServletEngine is a server that includes built-in support for servlets. 2: Add-on Serv....
Category: JSP Date: 11/5/2010 8:24:58 PM
JSP : Can destroy() method be called on servlets from service method ?
JSP : What is a WAR file?

What is a WAR file?

WAR(Web Archive) is a compressed version of web application and used to deploy the web application.
Category: JSP Date: 11/5/2010 3:41:59 PM