Kunal,
You could add a 'state' property to the form, that the first action can set to 'STARTED' and the last action can set to 'FINISHED' or something like that, then in your reset() method you could do something like:
reset()
{
if(state == Constants.FINISHED)
{
// reset all vars
}
}


and you could stick the form in the session scope. I think some of the more weathered Struts people here might have a better suggestion though.


Kunal H. Parikh wrote:

Hi All!

I want to maintain a single ActionForm across multiple Actions.

I want to get the info from the user in a step-by-step manner, but only
wanna talk to the SessionBean at the end when they hit "confirm".

The alternative that I can think of is writing a JavaBean with all the
properties, and pass the JavaBean around as a session attribute.

Any one have a better solution ?


TIA,

Kunal



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