Sounds good.  I think I want to only have 1 write to the db at the end of 
Action3, and im hoping to not use the session cause this app is gonna have alot 
of users.  By saving it on the page, are you talkin about using hidden form 
fields across the 3 pages or can i set the oject in action 1 so that it is 
visible in action 2?  I'm thinkin hidden form fields are the way to go here .. 
you agree?

-----Original Message-----
From: Brandon Mercer [mailto:[EMAIL PROTECTED]
Sent: Monday, April 04, 2005 9:59 AM
To: Struts Users Mailing List
Subject: Re: Multi Step Forms


Brian McGovern wrote:

>I have a situation where i need to have a multi screen form, lets say 3 steps. 
> On the successfull validation of the 3rd step.  I want to save the data into 
>the DB.  This data would have been collected starting on step one, through 
>step 3 and ecapsulated in 1 or more objects.
>
>My question is whats the best way to do this from a design standpoint without 
>using actionForms, thats not in option in my case.  Specifically is there a 
>clean way to save a partially filled object from step 1 and pass it to step 2. 
> Basically the functionality like Server.Transer in .NET.
>  
>
yes there is.  I've got a similar setup right now.  What I've done is
setup three Actions, one for each step, and I save information to a
temporary DB table.  This information could also be saved in the
session, or on each page.  Because of how I setup my DAO I actually have
an object per page ( this is much cleaner in the long run).  On the last
page the information is reviewed by the client and I have another action
that pulls the information out of wherever you put it, and stores it
into the "primary" table. 
Brandon

>
>  
>


---------------------------------------------------------------------
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]

Reply via email to