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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to