Another programmer wants to invalidate the session in a tile under a
certain condition. We get into the tiles definition by dispatching from
our servlet to a jsp that has a tiles:insert. Once the session is
invalidated then we get (as you'd expect) an IllegalStateException and
execution halts. In our case, this particular tile is in the middle of a
page and the rest of the tiles (such as the footer) never execute. Not a
big deal. The way he wants to do this is not a good idea. We've worked
around it already.

Sam

-----Original Message-----
From: Antonio Petrelli [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 22, 2006 5:17 AM
To: Struts Developers List
Subject: [tiles2] Re: What happens if session is invalidated by a tile?

Stone, Sam ha scritto:
> It appears that ServletSessionScopeMap.containsValue(...) will throw a
> java.lang.IllegalStateException when getAttributes() is called on an
> invalidated session but it doesn't seem that anything catches and
> handles this.
>   

I think that the behaviour is correct, if the session is invalidated, 
then it's the task of the application (and not of Tiles) to intercept
it.
What's your use case where this behaviour is not acceptable?

Ciao
Antonio

---------------------------------------------------------------------
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