what are you 'cleaning' up?
session data?
entity data?
context data?
Martin
From: Ashraf Fouad <[EMAIL PROTECTED]>
Reply-To: Ashraf Fouad <[EMAIL PROTECTED]>
To: user@struts.apache.org
Subject: Making cleaning after forwarding to page
Date: Sat, 25 Jun 2005 16:55:30 +0300
MIME-Version: 1.0
I'm openning a hibernate session for each request, so I want to close this
after rendering data in JSP, as usually the objects are lazy loaded so if I
closed the hibernate session, it will give execptions in page, so I need to
keep it alive with me till the end of data rendering then close this
If a bean is in the request scope after forwarding to a JSP, the bean will be
out of scope after
the JSP is filled with the data from that bean. Why do you need to clean it up
yourself?
--- Ashraf Fouad <[EMAIL PROTECTED]> wrote:
> Dears,
> I want to know where to customize in struts 1.2.7 ino
Servlet filters would be way to go for this particular situation:
http://www.hibernate.org/43.html
HTH.
ATTA
On 6/25/05, Ashraf Fouad <[EMAIL PROTECTED]> wrote:
> I'm openning a hibernate session for each request, so I want to close this
> after rendering data in JSP, as usually the objects are
That always struck me as a strange pattern when using hibernate -
using the view (the web layer) to manage the data layer.
Is that the cleanest way to do that?
Larry
On 6/26/05, atta-ur rehman <[EMAIL PROTECTED]> wrote:
> Servlet filters would be way to go for this particular situation:
>
> ht
> Is that the cleanest way to do that?
probably not but you be the judge :)
http://forum.hibernate.org/viewtopic.php?t=927886
ATTA
On 6/26/05, Larry Meadors <[EMAIL PROTECTED]> wrote:
> That always struck me as a strange pattern when using hibernate -
> using the view (the web layer) to manage
6 matches
Mail list logo