struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stone, Sam" <sst...@constantcontact.com>
Subject RE: [tiles2] Re: What happens if session is invalidated by a tile?
Date Fri, 22 Dec 2006 14:06:43 GMT
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:apetrelli@apache.org] 
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: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message