`
wengsibo
  • 浏览: 80192 次
  • 性别: Icon_minigender_1
  • 来自: 福建
社区版块
存档分类
最新评论
文章列表
博客搬家专家
var treeStore = Ext.create('Ext.data.TreeStore', { root : { expanded : true, children : [{ text : "detention", leaf : true }, { text : "homework", expanded : true, checked : false, children : [{ text ...
/** * 根据request给实体类设值 * * @author 2011-1-14 * @param objClass * @param request * @return */ public static Object setBeanProperty(Class<?> objClass, HttpServletRequest request) { Object obj = null; try { obj = objClass.newInstance(); ...
以下是本人在做EXCEL/WORLD中在网上找的方法及个人总结: 方法1: <%@ page contentType="application/msword; charset=GBK" %>  //或者vnd.ms-word <%@ page contentType="application/msexcel; charset=GBK" %> //或者vnd.ms-excel 通过设置可以使原来页面的内容在word或者excel中表现出来。 如果需要把word或者excel文档下载下来,只需在jsp页面上面加上如下代码: < ...
//重写树的双击事件,让双击不展开子节点 Ext.override(Ext.tree.TreeNodeUI, { onDblClick : function(e) { e.preventDefault(); if (this.disabled) { return; } if (this.checkbox) { this.toggleCheck(); } if (!this.animating && this.node.hasChildNodes()) { var isExpand = this.n ...
<isNotEmpty prepend="and" property="begin_create_time"> CREATE_TIME >= to_date(#begin_create_time#,'yyyy-MM-dd HH24:MI:SS') </isNotEmpty> <isNotEmpty prepend="and" property="end_create_time"> <![CDATA[CREATE_TIME <= TO_DATE(#e ...
public int addSendMsg(final Msg msg) { this.getSqlMapClientTemplate().execute(new SqlMapClientCallback() { public Object doInSqlMapClient(SqlMapExecutor executor) throws SQLException { executor.startBatch(); int batch = 0; String[] tel_nbrs = msg.getTel_nbrs().split(" ...
对ibatis标签<iterate>的理解,在看ibatis文档时,就看见过这个标签,并且还 对其不是很了解,一直没有到现在,在工作中用到了这个标签时, 才去了解了一下这个标签的具体含义。 先把文档中对该标签的介绍贴出来一起分享。 Iterate:这属性遍历整个集合,并为List集合中的元素重复元素体的内容。 Iterate的属性: prepend - 可被覆盖的SQL语句组成部分,添加在语句的前面(可选) property - 类型为java.util.List的用于遍历的元素(必选) open - 整个遍历内容体开始的字符串,用于定义括号(可选) close ...
<!-- 方法权限认证AOP配置 --> <aop:config proxy-target-class="true"> <aop:aspect id="methodSecurityInterceptorAspect" ref="methodSecurityInterceptor"> <aop:pointcut id="methodSecurityPointcut" expression="execution(* com.doone.sys.log ...

配置Struts2_1_8_1

http://scorpiomiracle.iteye.com/blog/612107
could not execute query; nested exception is org.hibernate.exception.SQLGrammarException: could not execute query 解决方法:一般是hibernate 配置文件的用户名与表的用户名不一致
1.导入struts的包 commons-logging-1.0.4.jar freemarker-2.3.8.jar ognl-2.6.11.jar struts2-core-2.0.6.jar xwork-2.0.1.jar commons-io-1.1.jar 2.建立jsp页面 2.1 先将表单的提交方式设为POST,然后将enctype设为multipart/form-data 2.2 <input type="file" name="paperFile" size="30" /&g ...
According to TLD or attribute directive in tag file, attribute href does not accept any expressions 解答:这种情况当在页面上使用${} EL表达式来取值就出现的错误,把${}改为%{}就可以了。
struts2的s:iterator 可以遍历 数据栈里面的任何数组,集合等等 以下几个简单的demo: s:iterator 标签有3个属性:     value:被迭代的集合     id   :指定集合里面的元素的id     status 迭代元素的索引 1:jsp页面定义元素写法 数组或list <s:iterator value="{'1','2','3','4','5'}" id='number'> <s:property value='number'/>A </s:iterator> 打印结果为:  ...
Result类型 Webwork提供了一些com.opensymphony.xwork.Result接口的实现来使你的action可以容易的用户交互.这些Result类型包括: Chain - 用于 Action Chaining Dispatcher - 用于 JSP 整合 FreeMarker - 用于 FreeMarker 整合 HttpHeader - 用于控制特殊的HTTP行为 JasperReports - 用于 JasperReports 整合 Redirect - 用于直接跳转到例外的URL redirect-action - 用于直接跳转到另外的action ...
Global site tag (gtag.js) - Google Analytics