The moose likes JSP and the fly likes if i give a code like this-->isErrorpage= Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "if i give a code like this-->isErrorpage="false" what will happen" Watch "if i give a code like this-->isErrorpage="false" what will happen" New topic
Author

if i give a code like this-->isErrorpage="false" what will happen

senthil sen
Ranch Hand

Joined: Oct 10, 2002
Posts: 182
if i give a code like this-->isErrorpage="false" what will happen?
will the errorpage be included if i try to include in to this page??
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 11862
As I understand it, the isErrorPage attribute controls the code generated for the JSP. If true the code has to provide for creating the "exception" variable, so I suppose setting it false makes the JSP code simpler.
This kind of question can be answered in the Servlet and JSP API docs that you can find on java.sun.com as PDF files.
Bill


Java Resources at www.wbrogden.com
Asher Tarnopolski
Ranch Hand

Joined: Jul 28, 2001
Posts: 259
isErrorPage=false is actually default for all jsp pages.
if you wanna use your jsp page as an error page
you have to set isErrorPage=true. by doing so you will also be able to get the thrown exception by means of exception variable.
[ January 20, 2003: Message edited by: Asher Tarnopolski ]

Asher Tarnopolski
SCJP,SCWCD
 
 
subject: if i give a code like this-->isErrorpage="false" what will happen
 
Threads others viewed
passing false value for session
JSP Page Directive
How to determine page type
getSession(false);
problem with errorPage and isErrorPage="true"
Two Laptop Bag