struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Price <epr...@ptc.com>
Subject Re: Is it possible to get the ActionMapping object in a filter ?
Date Fri, 18 Jul 2003 15:34:44 GMT


Navjot Singh wrote:
> correct me if i am wrong
> 
> The filter servlet is hit before the request reaches the main servlet -
> ActionServlet in struts case. As the request has not even reached
> ActionServlet, ActionMapping object has not been initialized as of now.

You can always have the access code performed in the Filter, *after* the 
filter chain has been invoked.  However, it might be of no use for your 
use case by that time.

MyFilter    ActionServlet     Mapping
    |             |               |
    |             |               |
    - doChain()   |               |
   | |----------->-               |
   | |           | | instantiates |
   | |           | |------------->-
   | |           | |             | |
   | |                           | |
   | |            getRoles       | |
   | |-------------------------->| |





Erik


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


Mime
View raw message