Sounds like the scope on the form you submitted first may be request scope
instead of session scope.


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 17 January, 2003 01:18
To: Struts Users Mailing List
Subject: Struts application


I applied struts in the simplest form and received the below error message.
This application resides on a Weblogic 6.0 server.

Scenario:
It involves two JSP's, two form classes and an action class.  The Index.jsp
is loaded first where you key in the username and click the ok submit
button. It takes you to the other jsp, accept.jsp, which displays the user
name.

In the backend, when you click the button on the index.jsp, the value of
the username is taken to the form bean and in the action class the data
from the form bean of the index.jsp is retrieved and stored in the form
bean of the the accept.jsp and the jsp is loaded.  It automatically gets
the data from the form bean and displays  it on  the accept.jsp.


Problem:
The problem I'm having is once I click on the ok button from the index.jsp
I get the following error message displayed from weblogic:




<Jan 16, 2003 3:46:10 PM EST> <Error> <HTTP>
<[WebAppServletContext(6821348,wrox-struts,/wrox-struts)] Servlet failed
with Exception java.lang.NullPointerException





It's set up in the below structure:


                                                                            
                                                                            
                                                                            
                                                                            
 (Embedded image moved to file: pic04734.gif)                               
                                                                            
                                                                            
                                                                            




Can anyone help??

Thanks.

CONFIDENTIAL MATERIAL.  This electronic message contains information from
Princeton eCom Corporation, is confidential and may be privileged.  It is
intended for the use of the addressee only.  If you are not the addressee
indicated in this message (or responsible for delivery of the message to
such person), any disclosure, copy, distribution or use of the contents of
this message is prohibited.  Please destroy this message and notify us
immediately if this is the case by sending a reply to this message or by
sending an e-mail to [EMAIL PROTECTED] and by destroying all
copies of this message and any attachments. Thank you.  For more
information about Princeton eCom Corporation, please visit us at
http://www.princetonecom.com


______________________________________________

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

______________________________________________

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to