第一种方式:写在类上边,后边跟的是绝对路径
@Action(results = { @Result(name = "vir", location = "/view/baseinfo/virtualspace-updateicp.jsp")})
eg:
@Results({@Result(name="vir",location="/view/baseinfo/virtualspace-updateicp.jsp")}) public class XXXXX{ public String xxx(){ return "vir"; } }
第二种方式:写在方法名上边
@Action(results = { @Result(name = "vir", location = "/view/baseinfo/virtualspace-updateicp.jsp")})
eg:
public class XXXXX{ @Action(results = { @Result(name = "vir", location = "/view/baseinfo/virtualspace-updateicp.jsp")}) public String xxx(){ return "vir"; } }
原文地址:http://xuanxy.blog.51cto.com/2357481/1742905