According to my understanding of the problem, this is really a very typical 
requirement
that the Action class needs to pass some information to its view (jsps). All you have 
to do
is to set the userid as an attribute of request(or session) scope. And then in the 
login.jsp,
you can use <bean:write> tag to pick up its value. Further, in your case, you may want 
to 
use this tag for both displaying and setting the value of a hidden element.

Hope this helps,

----- Original Message ----- 
From: "James Dasher" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, January 03, 2002 7:15 AM
Subject: RE: Forwarding Data For A Form


> If I am not mistaken, the form is passed into the action.perform() as a
> parameter.  
> 
> You should be able to get/set your bean properties there.
> 
> -----Original Message-----
> From: Jack [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, January 02, 2002 5:51 PM
> To: Struts Users Mailing List
> Subject: Forwarding Data For A Form
> 
> 
> How can I get an action form to display data generated by an action?
> 
> I have a Registration action that updates a database and generates a
> user id.  The perform() method of that action forwards an ActionForward
> object mapped to a Login form.  I want the Login form to display the
> generated user ID from the Registration action.  I'm not sure how to
> pass along the user ID so it will automatically be picked up by the
> Login form and displayed in the proper input field.
> 
> Thanks.
> 
> Jack
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 



Reply via email to