`
chengxuyuancsdn
  • 浏览: 7465 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
1、grouping ,group by rollup, GROUP BY GROUPING SETS区别 2、$("#totalTable tbody>tr td:nth-child(" + i + ")").css({"width":tdWidth, "margin":"0px", "padding":"6px"}); 3、jQuery.extend 函数详解见URL 4、min-height、max-height、line-height 5、文本 ...
// 取值 // alert($("input[name='username']").val()); // alert($("input[name='password']").val()); // alert($("input[name='sex']:checked").val()); // alert($("input[name='sex']:checked").prev('label').text()); $("input[name=hobby]:checked" ...
// json格式 var people='{"authors": [{"firstName": "AAA","lastName": "BBB"},' +' {"firstName": "CCC","lastName": "DDD"}],' +'"people": [{"firstName& ...
/** * * @param uploadImage --本地路径(tomacat路径) * @param serverDir --服务器路径 * @param imageType --文件或图片类型 * 此方法可以上传文件或图片.txt,.jpg,.gif等 */ public void upload(String uploadImage,String serverDir,String imageType){ FileInputStream fis=null; FileOutputStream fos=null; // ...
1、jsp页面 <%@ page language="java" import="java.util.*" pageEncoding="GBK"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> ...
1、重复提交 2、struts2的token验证 3、用response返回xml时的注意 1、重复提交 (1)应用场景 (1-1)点击提交按钮两次。 (1-2)使用浏览器后退按钮重复之前的操作,导致重复提交表单。 (1-3)刷新页面 (1-4)使用浏览器历史记录重复提交表单。 (1-5)浏览器重复的 HTTP 请求。 (2)解决方法 (2-1)禁掉提交按钮 (2-2)Redirect跳到其他页面--------对用户体验不好 (2-3)在数据库添加约束------------2个用户同时添加相同的记录,肯定有一个没有插入进去 (2-4)ajax提交时出现一个loading模态提示。 (2-5 ...

读书笔记-4

    博客分类:
  • java
1、JSTL 核心标签库标签 2、避免SQL注入 3、字符串逆转方法 4、字符串比较compareTo 5、字符串替换replace 6、分拆字符串 1、JSTL 核心标签库标签共有13个, 学习资料:http://www.cnblogs.com/lihuiyy/archive/2012/02/24/2366806.html 功能上分为4类: (1)表达式控制标签:out、set、remove、catch (2)流程控制标签:if、choose、when、otherwise (3)循环标签:forEach、forTokens (4)URL操作标签:import、url、redire ...
1、resultMap配置 2、ibatis一对多配置 3、jquery笔记 1、resultMap配置 当<select resultMap="topic_data"> <resultMap id="topic_data">必须一一对应。 (1)<resultMap class="tblTopic" id="topic_data"> <result property="topicId" column="topicid" ...

读书笔记-2

    博客分类:
  • java
1、反射 2、oracle年-月-日 时-分-秒 3、oracle创建有参、无参函数 4、oracle行转列 5、Struts2拦截器 6、Filter过滤器(web.xml) 1、反射 (1)检查类的结构 在java.lang.reflect包里有3个类Field,Method,Constructor分别用于描述类的域、方法和构造器。 2、oracle年月日时分秒 select to_char(sysdate,'yyyy-mm-dd HH24-MI-ss')FROM DUAL 3、oracle函数 (1)大于4000的存储方式 create or replace functio ...

读书笔记

    博客分类:
  • java
1、Struts访问资源 2、把静态参数传递给一个动作 3、<result>type属性 4、s:iterator、s:if c:forEach 5、StringBuilder和StringBuffer 6、spring配置拦截器 1、访问资源 (1)通过ServletActionContext对象和实现ServletContextAware,ServletRequestAware,ServletRespons ...
1、showModalDialog returnValue是javascript中html的window对象的属性,目的是返回窗口值,当用window.showModalDialog函数打开一个IE的模式窗口时,用于返回窗口的值 主界面 var sonValue=window.showModalDialog("son.jsp"); 子界面 window.returnValue="传值给主界面"; 子界面得到主界面值方法 (主界面) var obj = new Object(); obj=&quo ...

事务与并发

    博客分类:
  • java
一:首先我们先来看段代码 conn.setAutoCommit(false); int count1=utilConn.updateData(conn, "update dict_cost_subj set is_hr='0'"); if(count1!=-1){ int count2=utilConn.updateData(conn, "update user_test set ussername='aa'"); if(count2!=-1){ conn.commit(); }else{ ...
import java.io.File; import java.io.IOException; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.analysis.standard.StandardAnalyzer; import org.apache.lucene.document.Document; import org.apache.lucene.document.Field; import org.apache.lucene.document.TextField; import o ...
Global site tag (gtag.js) - Google Analytics