Simon-- do you think you should use ActionForms to transfer objects that are
shared between actions and never changed on the front end?  I can see
arguments either way, what's your opinion?

-----Original Message-----
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 9:54 AM
To: Struts Users Mailing List; Miguel Angel Medina Lopez
Subject: RE: Newbie question about action forms


The "Struts way" is to transfer data between pages and actions using an
ActionForm object. This holds true for either direction. It is standard
practice to transfer this data in an Action Form. Please refrain from
putting data into the session as a transfer mechanism. Struts will
automagically make the form data available in the page that you call using
the reverse of the magic that it used to extract form data from your calling
page.

Simon

-----------------------------------------------------------------
Simon P. Chappell                     [EMAIL PROTECTED]
Java Programming Specialist                      www.landsend.com
Lands' End, Inc.                                   (608) 935-4526


>-----Original Message-----
>From: Miguel Angel Medina Lopez [mailto:[EMAIL PROTECTED]]
>Sent: Monday, September 23, 2002 11:48 AM
>To: Struts Users Mailing List
>Subject: Newbie question about action forms
>
>
>Hi all:
>
>In the Struts framewok information from the form to the action class is
>transfer through an ActionForm, but when I want to transfer 
>information from
>the Action to a new HTML (JSP) page, for example a list of 
>products, What is
>better? Use an action form or directly storing the list in the session
>object with a particular key.
>
>Thanks.
>
>
>--
>To unsubscribe, e-mail:   
><mailto:struts-user->[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