Forums Register Login
<c:catch> tag

In above code example, the variable declared as var gets assigned to exception object that's created inside tag.
Then what is the difference between the implicit exception object and the one with named var?
The implicit exception object is only available in pages that have isErrorPage attribute of page directive set to true. These are special pages which generally we use to show a user friendly page when anything goes wrong in our application. The exception object created using c:catch can be used on any page i.e. on any page which has the c:catch tag and any exception occurs inside the body of the c:catch tag...
Thanks Ankit
but I didnt get your second point. ie. on which pages can we use exception object created using <c:catch> tag?
You can use <c:catch> on any JSP page, whether its isErrorPage is set to true or false...

This thread has been viewed 1249 times.

All times above are in ranch (not your local) time.
The current ranch time is
Oct 16, 2018 04:38:36.