wood burning stoves 2.0*
The moose likes Struts and the fly likes Filter mapping in struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Filter mapping in struts2" Watch "Filter mapping in struts2" New topic
Author

Filter mapping in struts2

Rishit Patel
Greenhorn

Joined: Apr 11, 2008
Posts: 3
can any one tell me that by default struts filter mapping is some thing like
below
<filter>
<filter-name>struts</filter-name>
<filter-class>
org.apache.struts2.dispatcher.FilterDispatcher
</filter-class>
<init-param>
<param-name>actionPackages</param-name>
<param-value>com.cc.test</param-value>
</init-param>
</filter>

<filter-mapping>
<filter-name>struts</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
does it may cause any problem is i call FilterDispatcher for certian pattern only like below
<url-pattern>*.action</url-pattern>

in stead of <url-pattern>/*</url-pattern>.

Please revert back on same.

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Filter mapping in struts2