Rodney, I have been storing object in the session so both the presentation and the action can make use of them. What bothered me about this approach was the magic strings and class casting. So I figured I could get around that by adding my value object to the form. That way I could get all the type checking the complier provides. So if I am to use the session to pass these object how do I avoid the magic strings and type casts?
-----Original Message----- From: Rodney Paul [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 9:17 PM To: Struts Users Mailing List Subject: RE: How to pass a value object to another action The value from action class A retrieves the value from its own action form class. This value can then be supplied to the next class via a session object. -----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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

