I think you can't access a file in a higher level directory than the root
one.
so, if "/../main.jsp?file=serviceType.jsp" points to a file in the parent
dir
of the root dir of you app.


-----Mensaje original-----
De: Murali Mohan [mailto:[EMAIL PROTECTED]]
Enviado el: jueves, 28 de noviembre de 2002 11:03
Para: [EMAIL PROTECTED]
Asunto: Forward giving NullPointer exception


Hi the following is part of my code.
<%
    ServletContext context = getServletContext ();
    RequestDispatcher dispatcher =
context.getRequestDispatcher("/../main.jsp?file=serviceType.jsp");
    dispatcher.forward(request,response);
%>
I try to use the code to forward another page I am getting null pointer
exception.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to