I have question regarding error handling in JSP.
My site say 'Today' has two jsp files under two seperate folders
namely
'News.jsp' under 'News' folder and 'failure.jsp' under 'failure'
folder. As you can see failure is my error page.
Now when an exception occurrs in news.jsp, my error page gets called
but the 'errorPage' attribute of 'page' directive says
"../failure/failure.jsp".
This is where the call fails and WebSphere gives me compilation
error since it cannot resolve '..' and I don't know how to go up the tree.
Because of our products structure, the failure page cannot be under same
folder.
Can anyone please tell me how to get thsi path resolved? I wanted to
make the code neat with error handling... I don't want to use try.catch
everywhere in my jsp code or sendRedirect. As I use beans I don't
have servlet context in my java code.






________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to