• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

exception implicit object doubt

 
Ranch Hand
Posts: 124
Eclipse IDE MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<%@ page isErrorPage="false" %>
<html>
<body>
Fatal Error <b><%=exception.getMessage()%></b>
</body>
</html>

What will happen when the Container tries to redirects to a JSP Page after
encountering some error in 'common_error.jsp'?

a. The message 'Fatal Error' along with the description of the exception message will
be displayed.
b. NullPointerException will be encountered in 'common_error.jsp'.
c. The result is unpredictable.
d. None of the above.

As the exception implicit object will not be available for this page..how will the container react ?
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you will get exception cannot be resolved compilation error.

hence answare is d
 
Acetylsalicylic acid is aspirin. This could be handy too:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic