Where do you get the null exception in the JSP? If so have you changed the imports on the top of hte page?
d.
Ceron, Jay wrote:
The following snippet works without a problem:
try { ...
ReferenceDataBean ref = new ReferenceDataBean(); ref.connect();
session.setAttribute("resultsbean", ref);
getServletContext().getRequestDispatcher("/idpayCreateDist.jsp").forward(req uest, response); }
But when I make the reference bean a member of the servlet class, allocating with new in the init() function, I get a null exception.
try { ...
session.setAttribute("resultsbean", ref); // ref is a class attribute
getServletContext().getRequestDispatcher("/idpayCreateDist.jsp").forward(req uest, response); }
Does anyone know why?
________________________________________________ Goldman, Sachs & Co. 10 Hanover Square 16th Floor | New York, New York 10005 Tel: 212-902-7887 | Fax: 212-357-3045 email: [EMAIL PROTECTED]
Jay C. Ceron Financial Technology Division Goldman Sachs
__________________________________________________
___________________________________________________________________________ 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
-- David Mossakowski Instinet Corporation
****************************************************************** <<<Disclaimer>>>
This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and/or CONFIDENTIAL.
This email is intended only for the personal and confidential use of the recipient(s) named above.
If the reader of this email is not an intended recipient, you have received this email in error and any review, dissemination, distribution or copying is strictly prohibited.
If you have received this email in error, please notify the sender immediately by return mail and permanently delete the copy you received.
Thank you.
********************************************************************
___________________________________________________________________________ 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
