怎么配,才能使用无扩展名,并能用jpg,css 等资源
我的web.xml:
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Struts.xml的配置
<constant name="struts.action.extension" value="" />
这样配后能使用无扩展名的action.但不能用css jpg gif资源了。
请问有没方法既可使用无扩展名的action,又可以访问jpg等资源