Results 1 to 4 of 4

Thread: Invoke JSP error page from servlet

  1. #1
    Junior Member
    Join Date
    Apr 2007
    Answers
    2

    Invoke JSP error page from servlet

    Can I invoke a JSP error page from a servlet?


  2. #2
    Junior Member
    Join Date
    Sep 2006
    Answers
    6

    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


  3. #3
    Junior Member
    Join Date
    Apr 2007
    Answers
    15

    Re: Invoke JSP error page from servlet

    hi,

    u cann't invoke ,bt u can forward the response to that Error page


  4. #4
    Junior Member
    Join Date
    May 2007
    Answers
    19

    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
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact