struts2的跳转类型是chain的错误,请大家指导

时间:2008-09-28 11:15:15   来源:论坛整理  作者:  编辑:chinaitzhe
我现在页面上有一个action的配置,如下:
<action name="myaction" class="GenerateAction">
<result name="list1">/pages/opinion/opinion_generate_list.jsp </result>
<result name="list2">/pages/opinion/opinion_template_list.jsp </result>
<result name="list3">/pages/opinion/opinion_view.jsp </result>
</action>
我现在新写了一个action,配置如下:
<action name="action2"
class="GenerateAction"
method="method2">
<result type="chain"name="success">
myaction!searchOpinGenerateProject
</result>
</action>
我的问题出现在 <result type="chain"name="success">
myaction!searchProject
</result>,其实我刚配置的action是为了执行完action2后跳转到myaction里的searchProject()方法来执行,但是就是跳转不对。请大家看看,是配置错了吗。

关键字:

相关文章

    无相关信息

文章评论

共有 0 位网友发表了评论 此处只显示部分留言 点击查看完整评论页面