-
Junior Member
Re: Invoke JSP error page from servlet
Yes we can do this. you need to write
javax.sql.SQLException
error.jsp
Just add the above code to web.xml file and when ever an SQLException is raised and not handled in the Servlet it will check in the web.xml for this exception and will be handled by the page (may be servlet also) given in the location sub-element.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules