struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Taylor, Jason" <jtay...@cobaltgroup.com>
Subject RE: Newbie question about action forms
Date Mon, 23 Sep 2002 17:39:34 GMT
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:Simon.Chappell@landsend.com]
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                     simon.chappell@landsend.com
Java Programming Specialist                      www.landsend.com
Lands' End, Inc.                                   (608) 935-4526


>-----Original Message-----
>From: Miguel Angel Medina Lopez [mailto:mamedina@logic-factory.com]
>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->unsubscribe@jakarta.apache.org>
>For 
>additional commands, 
>e-mail: <mailto:struts-user-help@jakarta.apache.org>
>
>

--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message