因为struts2要求:当为action配置了自定义拦截器之后默认拦截器则失效,所以必須手动配置默认拦截器。
<!-- 配置用户的默认的拦截器栈 -->
<package name="packageA" namespace="/book" extends="baseBook">
<action name="createBook" class="bookBean" method="creatBook">
<result name="success">/success.jsp</result>
<interceptor-stack name="userAuth">
<interceptor-ref name="defaultStack" />
</action>
</package>
struts2 action不能得到浏览器请求参数
猜你喜欢
转载自letmedown.iteye.com/blog/2109391
今日推荐
周排行