After getting some sleep , with my head clear now , I can see that I have another question .

It's not as obvious to me how to obtain the tapestry ASO objects in the sessionDestroyed() method .

Cosmin
----- Original Message ----- From: "Patrick Casey" <[EMAIL PROTECTED]>
To: "'Tapestry users'" <[email protected]>
Sent: Tuesday, November 22, 2005 11:59 PM
Subject: RE: How can I do something right before a session is timedout or closed ?



Step 1: Implement javax.servlet.http.HttpSessionListener in a class.

Step 2: Tell your web.xml to use your listener

<listener>
<listener-class>
my.listener
</listener-class>
</listener>

Step 3: in your sessionDestroyed() method of the listener, persist
whatever you want to persist.

-----Original Message-----
From: Cosmin Bucur [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 22, 2005 8:55 PM
To: Tapestry users
Subject: How can I do something right before a session is timedout or
closed ?

How can I do something right before a session is timedout or closed ?

I would also like to persist it the session objects to a db , but only
once
before the session is closed .

Thx
cosmin


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to