第一种方式:写在类上边,后边跟的是绝对路径
@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"; } }
时间: 2024-11-05 18:59:18