You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Kunal H. Parikh" <ku...@carsales.com.au> on 2004/06/08 04:08:25 UTC

Single ActionForm accross multiple Actions

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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Single ActionForm accross multiple Actions

Posted by Riyad Kalla <rs...@email.arizona.edu>.
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: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>  
>

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


Re: Single ActionForm accross multiple Actions

Posted by DG...@EvergreenInvestments.com.
Hidden form variables.

Dennis




"Kunal H. Parikh" <ku...@carsales.com.au> 
06/07/2004 10:08 PM
Please respond to
"Struts Users Mailing List" <us...@struts.apache.org>


To
"'Struts Users Mailing List'" <us...@struts.apache.org>
cc

Subject
Single ActionForm accross multiple Actions






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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



Pluggable User Security Framework

Posted by Amin Lalji <am...@intelysis.com>.
Hello All,

Just wondering if anybody has come across an Open Source Pluggable User
Authentication Frameworks that integrates well with struts... nothing
fancy... just user login/password, tombstone information, group levels
etc... 

Thanks


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