2012年1月29日

formValidator的一些验证实例

摘要: $(function(){ try { $.formValidator.initConfig({ formid: "formTable", errorfocus: false, submitonce: true, tipstyle: "both", onerror: function(){ // 验证不通过时的回调函数 alert("红色提示处输入非法,请根据提示修改!"); } }); //验证字符串(必填) $("#name").formValidator({ // 验证:模... 阅读全文

posted @ 2012-01-29 10:18 小山丘 阅读(6784) 评论(1) 推荐(3) 编辑

2011年12月29日

oracle 中查找不连续的数的最前一个值

摘要: select min(max(content_code))+ 1 sr_nofrom(select t.content_code, t.content_code - row_number() over(order by content_code) diff from epp_t_content t where content_code between 12290 and 12299)group by diff; 阅读全文

posted @ 2011-12-29 21:20 小山丘 阅读(381) 评论(0) 推荐(0) 编辑

2011年11月30日

spring's JdbcTemplate, NamedParameterJdbcTemplate and SimpleJdbcTemplate(转)

摘要: 参考:http://static.springsource.org/spring/docs/2.5.x/reference/jdbc.html#jdbc-JdbcTemplate-idiomsUse spring their operation on the database, you can use these three database operations template.The method in JdbcTemplate main transmission sql, and array parameters, the method requires an array of sql 阅读全文

posted @ 2011-11-30 14:44 小山丘 阅读(1254) 评论(0) 推荐(0) 编辑

2011年11月2日

存储过程复合变量

摘要: 存储过程:复合变量Pl/Sql记录DECLARE TYPE content_record_type is RECORD ( name epp_t_content.content_ky%TYPE); content_record content_record_type; Begin select content_ky INTO content_record from epp_t_content where content_id = '1001022203'; dbms_output.put_line('雇员名:'||content_record.name); En 阅读全文

posted @ 2011-11-02 10:33 小山丘 阅读(199) 评论(0) 推荐(0) 编辑

2011年9月8日

Struts2 的Action中若希望访问Session对象转自: http://blog.csdn.net/puffCN/article/details/5607557

摘要: Struts2 的Action中若希望访问Session对象,可采用两种方式:1、从ActionContext中获取;2、实现SessionAware接口。1、从ActionContext中获取:view plain·········10········20········30······ 阅读全文

posted @ 2011-09-08 15:02 小山丘 阅读(362) 评论(0) 推荐(0) 编辑

2011年8月31日

六种异常处理的陋习(转自http://www.blogjava.net/freeman1984/archive/2007/09/27/148850.html)

摘要: 六种异常处理的陋习 你觉得自己是一个Java专家吗?是否肯定自己已经全面掌握了Java的异常处理机制?在下面这段代码中,你能够迅速找出异常处理的六个问题吗? 1 OutputStreamWriter out = ... 2 java.sql.Connection conn = ... 3 try { // ⑸ 4 Statement stat = conn.createStatement(); 5 ResultSet rs = ... 阅读全文

posted @ 2011-08-31 17:32 小山丘 阅读(183) 评论(0) 推荐(0) 编辑

2011年8月25日

jQuery formValidator表单验证插件一些摘要和例子

摘要: 6种校验方式:inputValidator(针对input、textarea、select控件的字符长度、值范围、选择个数的 控制) inputValidator 概述 针对input、textarea、select控件的字符长度、值范围、选择个数的控制 支持的控件类型text(文本框)、radio(单选框)、checkbox(复选框)、file(文件选择器)、password(密码框)、textarea(多行编辑框)、select(选择框) 选项 typeObject (默认: "size") 属性名:比较类型。值有以下几个类型:"size":表示字符 阅读全文

posted @ 2011-08-25 09:15 小山丘 阅读(2080) 评论(0) 推荐(0) 编辑

2011年8月1日

fetch 的使用

摘要: //批量create or replace procedure testfetch is cursor cur_normal is select t.content_id from epp_t_content t where rownum < 3; TYPE ID_TAB_TYPE IS TABLE OF epp_t_send_content_status.content_id%type INDEX BY BINARY_INTEGER; contentIdNormalBuffer ID_TAB_TYPE; contentId char(10); begin open cur_normal 阅读全文

posted @ 2011-08-01 18:14 小山丘 阅读(220) 评论(0) 推荐(0) 编辑

2011年7月30日

developerWorksJava technologyTechnical libraryMerlin brings nonblocking I/O to the Java platform

摘要: A server's ability to handle numerous client requests within a reasonable time is dependent on how effectively it uses I/O streams. A server that caters to hundreds of clients simultaneously must be able to use I/O services concurrently. Until JDK 1.4 (aka Merlin), the Java platform did not supp 阅读全文

posted @ 2011-07-30 21:10 小山丘 阅读(200) 评论(0) 推荐(0) 编辑

2011年7月27日

jQuery插件的编写(一同事写的。。学习下)

摘要: //======================================================// [插件名称] jQuery formValidator// Author: YK-DJ//------------------------------------------------------// Depends:// jQuery.js// formValidator.js// formValidatorRegex.js// jquery.ui.sortable.js//================================================== 阅读全文

posted @ 2011-07-27 14:41 小山丘 阅读(299) 评论(0) 推荐(0) 编辑

导航