• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP Page Directive

 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,
I have one doubt regarding JSP page directive attributes.
Suppose i have 2 JSP pages a.jsp and b.jsp, in the a.jsp i want to set the isErrorPage=false, in b.jsp i want to set the errorPage="a.jsp", in this case, if some exeption occures in the b.jsp, then what will happen? Generally inorder to work the errorPage work fine, the a.jsp's isErrorPage=true.
Please explain me abt this.

thanks & Regards,
Sri.
 
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
in your a.jsp
the isErrorPage="false"
but in b.jsp your are giving errorPage="a.jsp"

since a is not a offical error page, though youe point to it in b.jsp
the container wont use a.jsp and will throw a stact trace in the borwser !
 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since you don't declare the error page officially by saying isErrorPage = "true", the container will trouble you when you try compiling it.
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If any exception is raised on b.jsp then it will show the a.jsp only.
But in a.jsp if you specify isErrorPage="fasle" then you can't access the JSP implicit exception object.
 
I've been selected to go to the moon! All thanks to this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic