Struts2
w_wonder
没有对与错,只有难和易
展开
-
Struts2中 debug标签
分为Value Stack Contents 和 Stack Context 两种Value Stack Contents 中的value值可以直接通过Property Name访问,eg:<s:property value="id"/>Stack Context 中的值需要在变量名前加 # 访问,eg:<s:property value="#parameters.id"...原创 2018-10-28 19:29:34 · 189 阅读 · 0 评论 -
Struts2实现分页
Action层package action;public class indexAction extends ActionSupport { private int pageAllNum; private int beginIndex; private List<App_User> list; public int getBeginIndex(...原创 2018-10-28 20:21:28 · 347 阅读 · 0 评论 -
ognl.NoConversionPossible 多表连接
用struts2 s标签取值的时候,发现实体多对一映射的值无法取出,出现ognl.NoConversionPossible,需要在hbm映射文件的many-to-one中设置 懒加载lazy=‘false’ ,即可解决问题。 ...原创 2018-12-08 19:13:50 · 363 阅读 · 2 评论 -
Struts2常用标签
Struts2常用标签转载 2019-01-03 10:31:20 · 96 阅读 · 0 评论