Struts2重定向后页面不跳转,求大神解决!
struts.xml action的配置
Action代码!是从下边的action中返回toNewsListAction ,转到NewsAction_findAll action中
从定向的action
现在已经进入到重定向的action中了!但是不知为什么页面就是不跳转。
<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>
Action代码!是从下边的action中返回toNewsListAction ,转到NewsAction_findAll action中
/**
* 查询所有新闻方法
* @return
*/
public String addNewsEntity(){
newsService.addNewsEntity(model);
return "toNewsListAction";
}从定向的action
/**
* 查询所有新闻方法
* @return
*/
public String findAll(){
this.newsEntityList = newsService.findAllEntity();
System.out.println("findall");
return "toNewsListPage";
}现在已经进入到重定向的action中了!但是不知为什么页面就是不跳转。
...全文


