WebWork有很多属性可以根据需要改变.要改变它们,请指定classpath(通常是/WEB-INF/classes)下的webwork.properties文件中的值.属性列表可以在default.properties文件中找到(在webwork.jar中):
解决方案:
在webwork.properties中添加一行:webwork.action.extension=action,do
并在web.xml中配置映射:
<filter-mapping>
<filter-name>webwork</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>