Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: Struts 2 - session scope ActionForm

Don Brown

2007-03-07

Replies:

If you really want to have a JavaBean serve as a session-scoped
ActionForm, use this interceptor:
http://struts.apache.org/2.x/docs/scoped-model-driven-interceptor.html

It allows you to have a single JavaBean as the Action's model
(ActionForm) and will manage storing and retrieving it to/from the
session.

Don

On 3/6/07, Alex Wibowo <alexwibowo@(protected):
> Hi all...
>
> I am still in the process of learning Struts 2. As I understand it, there is
> no way in Struts 2 to do something like session scope ActionForm in Struts
> 1.
> The only solution I can find is to use "ConversationScopeInterceptor"
> written here:
> https://issues.apache.org/struts/browse/WW-1514
>
> Does this sound right? Or am I missing something in the Struts
> documentation?
>
>
>
> Thanks a lot!
>
>
>
> --
> Best regards,
>
>
> Alex Wibowo
> -------------------
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.