This does NOT work. When an action is invoked using "s:action" in JSP, even
if dispatcher is set as below, the request filter is being invoked.
Is there any work-around?

Thanks.



Musachy Barroso wrote:
> 
> Use the "dispatcher" element in the "filter-mapping" element in web.xml,
> like:
> 
>  <filter-mapping>
>         <filter-name>MyFilter</filter-name>
>         <url-pattern>/*</url-pattern>
>         <dispatcher>REQUEST</dispatcher>
>     </filter-mapping>
> 
> On Fri, Oct 9, 2009 at 10:16 AM, Pancham <pancham.si...@gmail.com> wrote:
>>
>> I have a request filter that needs to be executed only once during
>> processing
>> of a request. Unfortunately, whenever another action is included within
>> the
>> same request using "action" tag, my request filter is invoked.
>> How can I prevent invocation of request filter when an action is included
>> using action tag? Or, is there any way to find out in the filter that it
>> is
>> being invoked as a result of action invocation within the same request.
>>
>> Thanks.
>> --
>> View this message in context:
>> http://www.nabble.com/Prevent-request-filter-invocation-when-struts-action-tag-is-invoked-tp25824829p25824829.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
> 
> 
> 
> -- 
> "Hey you! Would you help me to carry the stone?" Pink Floyd
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Prevent-request-filter-invocation-when-struts-action-tag-is-invoked-tp25824829p25840798.html
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to