this is a working code:
getServletContext().getRequestDispatcher("/myWeb/hello.jsp").forward(request
, response);
Try to give an absolute URL rather than using ../../. (Do not use http:,
give only context and filename).
-----Original Message-----
From: Vikramjit Singh [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 8:45 AM
To: [EMAIL PROTECTED]
Subject: PROBLEM IN REQUESTDISPATCHER
HI,
i am trying to send the request object from my servlet to the jsp page
RequestDispatcher dispatcher =
context.getRequestDispatcher("../../TOPS/RA_Skill_J2.jsp");
dispatcher.forward(request, response);
but i am getting nullpointerexception in dispatcher.forward();
cud anybody thow some light.
Regards,
Vikramjit Singh,
Systems Engineer,
GTL Ltd.
Ph. 7612929-1031
===========================================================================
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
===========================================================================
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