
struts2
miqi1227
道可道,非常道。名可名,非常名
展开
-
Struts的转向问题
Struts设置转向信息的时候,需要用到Forward。我们有四种不同的处理方式: [html] view plaincopyprint? global-forwards> forward name="error" path="/mustLogin.jsp" /> global-forwards> actio原创 2015-06-09 09:16:04 · 711 阅读 · 0 评论 -
Struts2中的ModelDriven机制及其运用
什么需要ModelDriven Struts2中的ModelDriven机制及其运用 所谓ModelDriven,意思是直接把实体类当成页面数据的收集对象。比如,有实体类User如下: package cn.com.leadfar.struts2.actions; public class User { private int id;转载 2015-07-05 11:38:13 · 459 阅读 · 0 评论