• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Filter mapping in struts2

 
Rishit Patel
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic