struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: Form with upload
Date Sat, 16 Feb 2008 13:30:27 GMT
--- Paranoid_Fabio <paranoid_fabio@yahoo.it> wrote:
> Thank you. If I submit all the data in "one shot" everything goes ok.
> 
> What I wanted to do in principle was to first upload the image (and other
> files the user has to upload), then submit the form with other parameters.
> like a step-by-step submission.
> The problem is that i would like to have, in the end, all the data (image,
> files, paramaters) available in the same action.. so what I thought to do
> is
> to call different methods of the same action class via different action
> names in struts.xml, each declaring a different <method> parameter..but I
> guess I'm doing something wrong.

S2 actions are instantiated for each request. If you want some sort of
wizard-like interface, where the form is filled in across several pages,
you'll need to keep some information in the session or in hidden form fields
etc.

Dave


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


Mime
View raw message