struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Taylor, Jason" <>
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 []
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


Simon P. Chappell           
Java Programming Specialist            
Lands' End, Inc.                                   (608) 935-4526

>-----Original Message-----
>From: Miguel Angel Medina Lopez []
>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.
>To unsubscribe, e-mail:   
>additional commands, 
>e-mail: <>

To unsubscribe, e-mail:
For additional commands, e-mail:

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