If i remember getServletContext has been deprecated and now returns a null
..

-----Original Message-----
From: Brian Richards [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 05, 2001 3:32 AM
To: [EMAIL PROTECTED]
Subject: Forward Request alogn with Parameters


I get a null pointer exception at dispatcher.forward()  am i doing something
wrong?

thanks

brian

request.setAttribute("custName",custName);
request.setAttribute("custStreet",custStreet);
request.setAttribute("custZip",custZip);
request.setAttribute("custEmail",custEmail);
request.setAttribute("custCity",custCity);
request.setAttribute("custState",custState);
request.setAttribute("productName",productName);
RequestDispatcher dispatcher =
getServletContext().getRequestDispatcher("vieworder.jsp");
dispatcher.forward(request,response);




**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

Reply via email to