ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Scripts  >>  JSP
 
 


 

 
 PHP interview questions  PHP Interview Questions
 ASP interview questions  ASP Interview Questions
 CGI Perl interview questions  CGI Perl Interview Questions
 JavaScript interview questions  JavaScript Interview Questions
 VB Script interview questions  VB Script Interview Questions
 JSP interview questions  JSP Interview Questions
 Shell Script interview questions  Shell Script Interview Questions
 Python interview questions  Python Interview Questions
 Tcl interview questions  Tcl Interview Questions
 Awk interview questions  Awk Interview Questions
 AJAX interview questions  AJAX Interview Questions
 Ruby on Rails interview questions  Ruby on Rails Interview Questions
 Scripts AllOther interview questions  Scripts AllOther Interview Questions
Question
How does JSP handle run-time exceptions?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How does JSP handle run-time exceptions?
Answer
# 1
You can use the errorPage attribute of the page directive 
to have uncaught runtime exceptions automatically forwarded 
to an error processing page.
For example:
redirects the browser to the JSP page error.jsp if an 
uncaught exception is encountered during request 
processing. Within error.jsp, if you indicate that it is an 
error-processing page, via the directive: 
the Throwable object describing the exception may be 
accessed within the error page via the exception implicit 
object. 
Note: You must always use a relative URL as the value for 
the errorPage attribute.
 
Is This Answer Correct ?    2 Yes 0 No
Guest
 
  Re: How does JSP handle run-time exceptions?
Answer
# 2
My declarring errorpage attribute in page directive as
<% page errorPage="error.jsp"%>

and when u think that a jsp is supposed be encountered an 
error then <% page isErrorPage="true"%>
 
Is This Answer Correct ?    0 Yes 0 No
Mainuddin
 
 
 

 
 
 
Other JSP Interview Questions
 
  Question Asked @ Answers
 
What are JSP Directives?  4
how the jsp file is compiled? Persistent2
why JSP is bigger choice for software development as compare to ASP.  2
How do I set password expire time period?  3
Are application, pageContext and object of ServletContext same or not?  2
How to find the hidden answers present in an online exam?  2
How To maintain session ..? TCS3
which situation you use static include and dynamic include in jsp? L&T1
What is the difference between JSP and Servlet? T3-Softwares6
how can we retrieve the values in jsp by using custom tags Wipro3
how to print a string with out using out.println? Elementus-Technologies2
Where we use assertion in java programming?  1
how can i get a scjp certification??  2
Can we use methods in JSP? If so where the methods are stored in servlet class file? Persistent2
Can we override serivice()method in jsp?  3
What Do you Mean By Object Serialization in java. Accenture2
Explain about the Scriplet and Exclamatory Tag? HCL1
How does JSP handle run-time exceptions? IBM2
How do you restrict page errors display in the JSP page? IBM1
How many page directive we can use in a single JSP? Persistent2
 
For more JSP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com