首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

struts2 诠注配置

2012-09-01 
struts2 注解配置1、web.xml多个Action在类方法上加注解 //@Action(value add, results { @Result(na

struts2 注解配置
1、web.xml


多个Action


在类方法上加注解
 //@Action(value = "add", results = { @Result(name = "success", location = "/index.jsp") }) @Action(value = "save")public String save() {try{adminMgr.insert("insertYz_admin", admin);}catch(Exception e){msg = e.toString();success = false;}return  this.SUCCESS;}

热点排行