这是我的action配置
<action name="memberLogin" class="memberLoginSpring">
<interceptor-ref name="token">
<param name="includeMethods">login</param>
</interceptor-ref>
<interceptor-ref name="defaultStack"/>
<result name="success" type="redirect">/mer!browserIndex.action</result>
<result name="regSuccess" type="redirect">/mer!browserIndex.action</result>
<result name="invalid.token" type="redirect">/mer!browserIndex.action</result>
</action>
[color=#008080]action中有两个方法login,loginOut
如果不加拦截器两个方法都好使,加了之后我的loginOut方法就不执行了,就会直接返回一个
input视图,这是为什么呢?在线求助!struts
<action name="memberLogin" class="memberLoginSpring">
<interceptor-ref name="token">
<param name="includeMethods">login</param>
</interceptor-ref>
<interceptor-ref name="defaultStack"/>
<result name="success" type="redirect">/mer!browserIndex.action</result>
<result name="regSuccess" type="redirect">/mer!browserIndex.action</result>
<result name="invalid.token" type="redirect">/mer!browserIndex.action</result>
</action>
[color=#008080]action中有两个方法login,loginOut
如果不加拦截器两个方法都好使,加了之后我的loginOut方法就不执行了,就会直接返回一个
input视图,这是为什么呢?在线求助!struts
<interceptor-ref name="token">
<param name="includeMethods">login</param>
</interceptor-ref>
<interceptor-ref name="defaultStack"/>
这段代码,放到result节点之后。
是重定向到另一个action
所以type因为:type="redirectAction"
多试试