UrlRewrite时需要注意的问题:action以及正则表达式
myeclipse6.5+struts2-core-2.1.8.jar+urlrewrite-3.2.0.jar如果存在开发环境的问题,那么自己先建立一个项目,把相应的文件导入即可
1.注意:为了实现action访问的伪静态在web.xml中配置struts2和urlrewrite时,加上
<!-- 点击footer链接去对应的footerPage页面 --><rule><from>^/footer/([\w\s*]+)$</from><to>/member/pages!toFooterPage.action?name=$1</to></rule><outbound-rule><from>member/pages!toFooterPage.action\?name=([\w\s*]+)$</from><to>/footer/$1</to></outbound-rule>