`
文章列表
http://www.blogjava.net/b47248054/articles/200685.html
在某些情况下需要对JSP页面使用request方式让其接收参数   可在action中设置如下       ActionContext ctx = ActionContext.getContext();         HttpServletRequest request = (HttpServletRequest)ctx.get(ServletActionContext.HTTP_REQUEST);        request.setAttribute("realdir", new Integer(content.getRealdir().getId())) ...
主要搞清存在2种对应关系:1对多 和 多对1   1方建立set数据结构 存在的性能问题:当加载对象时,set全部加载会耗费资源,可设置属性:lazy="TRUE" 但是特殊情况需要延时加载,只好牺牲性能,lazy="false"   <set name="accessgroupAccesses" inverse="true"
Struts2的标签<s:checkboxlist直接使用复选框堆在一起,查到的解决方式大多是修改模板文件,搜索到最后发觉还是这种方式比较简便: 我的java对象: class{   int id;     String description; } jsp:   <table width="90%" height="100%" border="0"> <s:iterator value="acsAllList" status="stat"> ...
Global site tag (gtag.js) - Google Analytics