Struts2的0配置方法总结
Struts2的零配置方法总结以下内容参考网上的资料 间接实现零配置 ?? struts.xml@Results({??? ??????@Resu
Struts2的零配置方法总结
以下内容参考网上的资料
间接实现零配置
?? struts.xml
@Results({??? ??????@Result(name="success",?type=NullResult.class,?value?=?"/success.html",?params?=?{}),??? ??????@Result(name="error",?type=NullResult.class,?value?=?"/error.html",?params?=?{})??? ??})?? ??? ??public?class?ListPeopleAction?{??? ??????public?String?execute()?{??? ??????????return?"success";??? ??????}??? ??}?
http://qichunren.iteye.com/blog/193386?