自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(130)
  • 收藏
  • 关注

原创 ModelDriven<T>

public class LoginAction extends ActionSupport implements ModelDriven{private T t = new T();//这里需要new,否则取不到东西public T getModel(){return t;}}

2012-03-18 10:46:17 510

原创 Java SE

final 不能修改引用,但可以修改对象的值final field ensure thread safe

2012-03-17 10:12:23 302

原创 JSP

select  要让某个值被选中,应在option里面设置selected属性。selected >${type}setTimeout(str, timeout); 第一个参数为string,要执行的语句,可以有多句setTimeout('enable()', 5000);button.disabled = true;让button不可用docu

2012-03-15 23:19:05 229

原创 Oracle Blob

insert的时候插入empty_bolb(),然后用行级锁锁定行,得到blob对象(oracle.sql.Blob),获取其binaryStream,然后用blob.length()得到该对象大小(为什么不能用binaryStream的available()方法,It is never correct to use the return value of this method to alloc

2012-03-15 14:36:37 456

原创 正则表达式使用

Pattern p = Pattern.compile("(?<=st)"); Matcher m = p.matcher("testtest123"); StringBuffer sb = new StringBuffer(); while(m.find()) m.appendReplacement(sb, "\r\n"); m.appendTail(sb); Syst

2012-03-15 14:06:11 644 2

原创 关于String 的正则

String  的 replace是不使用正则功能的。replaceAll和replaceFirst会使用正则。split(regex, n)    n     n=0时,匹配任意多次,但将结尾空字符串去掉    n>0时,最多匹配n-1次,也就是说数组的长度最大为n.

2012-03-14 23:00:47 375

原创 Proxool pool的配置

配置web.xml ServletConfiguratororg.logicalcobwebs.proxool.configuration.ServletConfiguratorxmlFileWEB-INF/proxool.xml1lib下新建proxool.xml        store-ds

2012-03-11 16:27:27 402

原创 Oracle ORA-00979

Oracle:查询结果中使用的字段和order by中使用的字段都要放到group by中,聚合函数除外alter table books modify title varchar2(80);修改表结构

2012-03-11 13:13:39 460

原创 struts-No configuration found for the specified action

struts.xml配置了namespace="/admin"(注意'/')1.如果jsp中用struts的标签,则加上namespace="/admin" action="xxx"(form )2.如果jsp中使用HTML标签,则action="/admin/xxx.action"

2012-02-29 19:07:26 394

原创 jQuery之可编辑表格的实现

$(document).ready(function(){$('table tr:even').css('background-color', '#ECE9D8');$('table tr:first').css('background-color', '#A3BAE9');$('table td').click(function(){var tdNode = $(this

2012-01-24 16:18:48 292

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除