File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes handling error when using jsp:include Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "handling error when using jsp:include " Watch "handling error when using jsp:include " New topic

handling error when using jsp:include

nitin kumar

Joined: Feb 11, 2004
Posts: 6
Hi all,

Please help me out in the following situation.

I have a jsp page that dynamically includes other html pages based on some business logic. i.e. names of html pages are determined dynamically.

How can I handle the errors that may occur if the html page that was determined by the logic is not found??
Also, based on what html page was not found I want to show error message at the point on the page where html page was not found.
No matter what error occurs during the execution of jsp, I want to completely execute the page and show my top, left, right and bottom navigation pages.

Thanks in advance for your help and time!
Ben Souther

Joined: Dec 11, 2004
Posts: 13410


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: handling error when using jsp:include
It's not a secret anymore!