Hello.
Force a round trip on the first request, prior to authentication,
and place the authenticated user object in the session object.
All future requests prior to session timeout will be tied to the same
session,
and can therefore be serviced by the same session object.
John
--------------------------------------------------
From: "suhas kokal" <kokalsu...@yahoo.com>
Sent: Wednesday, February 25, 2009 11:12 PM
To: "Struts Users Mailing List" <user@struts.apache.org>
Subject: Re: Hibernate, HTTP Session, and LazyInitializationException
Hi all,
If some body knows hot to use javascript alerts with struts 2.0 (when
validation framework fires)please find me the way.
Thanks a lot in advance.
Suhas.
--- On Wed, 25/2/09, Paul Benedict <pbened...@apache.org> wrote:
From: Paul Benedict <pbened...@apache.org>
Subject: Hibernate, HTTP Session, and LazyInitializationException
To: "Struts Users Mailing List" <user@struts.apache.org>
Date: Wednesday, 25 February, 2009, 11:15 AM
Does anyone have a good solution for objects stored in an
HTTP Session
that should be reattached per request? For example, like
the
authenticated "user" object stored in the HTTP
Session.
I had a servlet filter written that attached the entity per
request,
but a double-click from the user showed the futility of
that approach.
You can't have one entity attached to two sessions :-)
And, I don't think it's a GOOD idea for struts code
to know anything
about Hibernate. So I want to do be able to the
reattachment
transparently to UI/Web code.
Paul
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail:
user-h...@struts.apache.org
Add more friends to your messenger and enjoy! Go to
http://messenger.yahoo.com/invite/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org