ActionForms sole purpose i believe is to capture information the user has entered
within a web page. Hence we have in Struts the MVC 2 model, whereby the presntation 
layer is represented by JSP/velocity pages, ActionForm classes used to capture 
information the user has entered within the preentation pages, and Action classes to 
process business logic.

Now in regards to preparing information for you to render within multiple presentation 
pages, information should be stored in session objects. Hence in your case, if you 
need to present information to the Action B class from Action A, store this in a 
session object. Also have a storage place in the ActionForm class so that Action B can 
retrieve the information in an appropriate manner.

Cheers
Rodney

-----Original Message-----
From: Geoffrey Ellis [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 8 July 2003 11:34 AM
To: Struts Users Mailing List
Subject: How to pass a value object to another action


actionForm A contains a collection of value objects which are presented to
the user.  The user will select a particular value object which the next
actionForm B will need for presentation.
How should this be done?  I would think action A would grab the value object
from its actionForm and some how pass it to the next action or set that
value in actionForm B and then forward the request to Action B.  I don't see
how to do either of these or is this done another way?


---------------------------------------------------------------------
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