struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aladin Alaily <>
Subject Re: Handling invalid sessions
Date Mon, 17 Oct 2005 12:17:04 GMT
Hi Jadeler,

In response to your question about managing session objects, I would 
propose two methods:

1) Write a CustomRequestProcessor (which extends the struts 
RequestProcessor), and put your management code in there.   As a struts 
programmer, you know that all requests *should* go through this 
processor.  This way, if you (or someone else) forgets to extend a base 
class (as was suggested in another post), your validation still takes place.

2) Write a filter as you suggested.  Plain and simple.  The advantage of 
the filter is that it is not struts dependent and it can be mapped to 
specific urls. Consequently, not all requests will pass through the 
filter (unless you specify the map as '/').

Good Luck.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message