struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eddie Bush <ekb...@swbell.net>
Subject Re: Executing code before each action
Date Tue, 10 Sep 2002 17:52:23 GMT
Go read up on filters.  Here's the short of it:
    - transparent to client and application
    - can modify request / response

Since you can grab the session from the request, you could check for the 
presence of your attribute in the session, set it if it's not there, and 
just breeze past if it is.

Regards,

Eddie

Brett wrote:

>If I understand servlet filters correctly you mean I could simply set /* to go to my filter
and then perform the steps I need in the filter.  Does it then pass the request onto the Action
as per normal?  I assume it does.
>



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message