You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by James Carr <ja...@gmail.com> on 2007/11/06 18:39:47 UTC
Struts2 Configutation alternative to sessions?
Hi All,
I'm using struts 2 for a small web app that has an action attribute
that needs to maintain state. Currently I'm using sessions but I would
like to reconfigure my application to use something besides sessions,
perhaps something like viewState in .NET that would be availble via a
hidden input or get parameter. I'm sure struts 2 has something like
this, but I currently cannot find any good reference online via
google.
Thanks,
James
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts2 Configutation alternative to sessions?
Posted by Gary Affonso <gl...@greywether.com>.
James Carr wrote:
> Hi All,
> I'm using struts 2 for a small web app that has an action attribute
> that needs to maintain state. Currently I'm using sessions but I would
> like to reconfigure my application to use something besides sessions,
> perhaps something like viewState in .NET that would be availble via a
> hidden input or get parameter. I'm sure struts 2 has something like
> this, but I currently cannot find any good reference online via
> google.
I think you should not be so sure. :-)
If you're *really* intent on avoiding sessions and you don't want to
just handle the state-management yourself (with hidden fields,
url-rewriting, etc.) then you could take a look at WebFlow. It can
provide a view-state context and it can do it without relying on a
session. It's also a huge learning curve and somewhat tricky to
integrate into s2.
- Gary
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts2 Configutation alternative to sessions?
Posted by James Carr <ja...@gmail.com>.
Sessions aren't currently available on the server and I don't want to
have to wait till the end of the week for my client to view the
application.
Thanks,
James
On Nov 6, 2007 12:11 PM, Dave Newton <ne...@yahoo.com> wrote:
> --- James Carr wrote:
> > Currently I'm using sessions but I would like to
> > reconfigure my application to use something besides
> > sessions, perhaps something like viewState in .NET
> that
> > would be availble via a hidden input or get
> parameter.
>
> Why are you trying to avoid the session?
>
> > I'm sure struts 2 has something like this,
>
> Why? AFAIK there's nothing like a viewstate built-in.
> Isn't viewState deserialization handled by the ASP
> renderer on the server side? I'm not sure how you'd
> implement that, although you could always do it
> client-side via JavaScript.
>
> d.
>
>
> ---------------------------------------------------------------------
> 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: Struts2 Configutation alternative to sessions?
Posted by Dave Newton <ne...@yahoo.com>.
--- James Carr wrote:
> Currently I'm using sessions but I would like to
> reconfigure my application to use something besides
> sessions, perhaps something like viewState in .NET
that
> would be availble via a hidden input or get
parameter.
Why are you trying to avoid the session?
> I'm sure struts 2 has something like this,
Why? AFAIK there's nothing like a viewstate built-in.
Isn't viewState deserialization handled by the ASP
renderer on the server side? I'm not sure how you'd
implement that, although you could always do it
client-side via JavaScript.
d.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org