Struts配置文件里Action跳转到另一个Action并指定方法,怎么实现啊
源码:<actionname="AnswerAction"class="AnswerAction"><resultname="viewInfo"type="redirec...
源码:
<action name="AnswerAction" class="AnswerAction">
<result name="viewInfo" type="redirectAction"><param name="actionName">QuestionAction</param>
<param name="namespace">/</param>
</result>
</action>
想从AnswerAction跳转到QuestionActin并且指定到方法getInfo中 展开
<action name="AnswerAction" class="AnswerAction">
<result name="viewInfo" type="redirectAction"><param name="actionName">QuestionAction</param>
<param name="namespace">/</param>
</result>
</action>
想从AnswerAction跳转到QuestionActin并且指定到方法getInfo中 展开
2个回答
展开全部
<action name="Aaction" class="com.A">
<result name="success" method="xxxx">
/WEB-INF/jsp/a.jsp
</result>
</action>
<action name="Baction" class="com.b">
<result name="success" type="redirect">
/Aaction.action
</result>
</action>
<result name="success" method="xxxx">
/WEB-INF/jsp/a.jsp
</result>
</action>
<action name="Baction" class="com.b">
<result name="success" type="redirect">
/Aaction.action
</result>
</action>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
<action name="AnswerAction" class="AnswerAction" >
<result name="viewInfo" type="redirectAction">
<param name="actionName">QuestionActin</param>
</result>
</action>
<action name="QuestionActin" class="QuestionActin" method="getInfo">
<result name="viewInfo" >
shdfkjhfkljsljflsj.jsp
</result>
</action>
不知道你能不能明白
<result name="viewInfo" type="redirectAction">
<param name="actionName">QuestionActin</param>
</result>
</action>
<action name="QuestionActin" class="QuestionActin" method="getInfo">
<result name="viewInfo" >
shdfkjhfkljsljflsj.jsp
</result>
</action>
不知道你能不能明白
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询