Might not be understanding your question right but in similar circumstances,
we have used a ViewAction to prepopulate forms and EditActions for editing
the forms.You can store the selected values in request scope and forward
from the 1st action to the ViewAction and then forward after prepopulation
to the 2nd form.The 2nd form will call the corresponding EditAction.

Vijay

-----Original Message-----
From: Scott Goldstein [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 19, 2003 9:27 PM
To: [EMAIL PROTECTED]
Subject: Design Pattern question


I'm new to Struts and I ran into a problem with my first application.  It 
appears that only one form bean can be assigned to a single action.
However, 
I have a situation in which I have one page with a form that leads to
another 
page with a form.  Specifically, on Page A, I have a select box.  The user 
selects an item and presses an Edit button.  The Edit button submits the
form 
and the user is brought to the next page, Page B, which contains the form
used 
to edit the item.

So, if the Edit button leads to an Action, it will pull the selected item
from 
a FormBean assigned to the action.  Then, how do I prepopulate the form bean

for the next page?  Do I have to somehow forward to another Action?  If so, 
how do I carry the selected item over to the new Action?

Thanks for the help.

Scott

 
-----------------------------------------------------
                     Shanje.NET
 The webmaster's 1st choice for Windows 2003 Hosting
               http://www.Shanje.NET/
-----------------------------------------------------


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

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

Reply via email to