Hi Folks,
I have got null pointer exception while trying to forward request to
another servlet using RequestDispatcher. The code snippet and the exception
is as follows.
String url="http://localhost/servlet/AccountBalance?cust_id=1234":
RequestDispatcher rd = context.getRequestDispatcher("url");
rd.forward(request,response);
while trying to execute the above code I am getting null pointer
exception. If I change the url to...
"/servlet/AccountBalance?cust_id=1234" or
"<http://localhost/servlet/AccountBalance>" its perfectly working without
any exceptions. Any ideas....
Cheers,
ramesh
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
null pointer exception while trying to forward request
Ramesh Chakravarthy.panchakarla Sun, 21 Jan 2001 20:49:12 -0800
- Re: null pointer exception while trying to... Mick McRae
- Ramesh Chakravarthy.panchakarla
