• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
senthil sen
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Asher Tarnopolski
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!