Results 1 to 1 of 1
  1. #1
    Pojahn_M's Avatar
    Pojahn_M is offline Senior Member
    Join Date
    Mar 2011
    Rep Power

    Default Redirect to an page, resource not found

    I am using the following code in the servlet to redirect the client to start.jsp:

    Java Code:
    request.getRequestDispatcher("WEB-INF/views/start.jsp").forward(request, response);
    Now when viewing start.jsp, if you click on a specific button, the servlet will redirect you to dpost.jsp:

    Java Code:
    request.getRequestDispatcher("WEB-INF/views/dpost.jsp").forward(request, response);
    This however, do not work. I get a null pointer saying that the resource is not available.

    start.jsp and dpost.jsp is located in the same directory.

    Why is it not working?
    Last edited by Pojahn_M; 04-22-2013 at 12:18 PM.

Similar Threads

  1. How to redirect to thank you page
    By rashriaz in forum New To Java
    Replies: 4
    Last Post: 03-07-2012, 09:27 AM
  2. Why am I getting a resource not found ?
    By fatabass in forum New To Java
    Replies: 8
    Last Post: 02-19-2012, 11:07 PM
  3. Redirect To Same Page
    By systech44 in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 12-08-2009, 12:27 PM
  4. redirect to html page
    By simo_mon in forum Java Servlet
    Replies: 3
    Last Post: 02-12-2009, 06:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts