67,512
社区成员
发帖
与我相关
我的任务
分享
<action name="NewsAction_*" class="newsAction" method="{1}">
<result name="toNewsListPage">/back/news.jsp</result>
<result name="toAddNewsPage">/back/news_add.jsp</result>
<result name="toNewsListAction" type="redirectAction">NewsAction_findAll</result>
</action>
/**
* 查询所有新闻方法
* @return
*/
public String addNewsEntity(){
newsService.addNewsEntity(model);
return "toNewsListAction";
}
/**
* 查询所有新闻方法
* @return
*/
public String findAll(){
this.newsEntityList = newsService.findAllEntity();
System.out.println("findall");
return "toNewsListPage";
}
<action name="NewsAction_*" class="newsAction" method="{1}">
<result name="toNewsListPage">/back/news.jsp</result>
<result name="toAddNewsPage">/back/news_add.jsp</result>
<result name="toNewsListAction" type="redirect">findAll.action</result>
</action>
现在进不去转发的action了