struts2 转发、重定向概述

 

转发等参数传递的注解方式:

@Action(value = "operatorRoleAction", results = { @Result(name = "view", location = "/bussiness/operatorrole_view.jsp", type = "dispatcher", params={"userId", "%{userId}", "userName", "%{userName}"}) })
 public String dealOperatorRole() {
  return OPFLAG_VIEW_RES;
}

 

http://www.cnblogs.com/wuhuisheng/archive/2011/07/04/2097761.html

 

其中userId、userName为动态参数

 

 
posted @ 2015-12-04 21:03  NewLife365  阅读(248)  评论(0编辑  收藏  举报