-
Junior Member
Invoke JSP error page from servlet
Can I invoke a JSP error page from a servlet?
-
Junior Member
Re: Invoke JSP error page from servlet
i guesss u will need to code the jsp page which u wanna diplay through tht servlet or use forward to move to thte perticulat jsp
-
Junior Member
Re: Invoke JSP error page from servlet
hi,
u cann't invoke ,bt u can forward the response to that Error page
-
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