- 博客(11)
- 资源 (1)
- 收藏
- 关注
翻译 iReport输出byte[]型image 以及iReport的if else
iReport输出byte[]型image:If your field will have a byte[] as value, you need to declare the field as java.lang.Object and then cast it in your image expression如果你的image是byte[]类型,iReprot中对应的field应设为
2012-03-16 12:47:48
2491
转载 Hibernate枚举映射
Hibernate枚举映射 利用Hibernate Annotation 进行枚举映射。@Enumerated(EnumType.STRING) 要是映射到hbm.xml中, org.nesta.Session$State 4 type是4代表整形, 12代表
2011-12-28 16:51:25
532
转载 linux dd命令参数及用法详解---用指定大小的块拷贝一个文件
linux dd命令使用详解dd 的主要选项:指定数字的地方若以下列字符结尾乘以相应的数字:b=512, c=1, k=1024, w=2, xm=number mif=file输入文件名,缺省为标准输入。of=file输出文件名,缺省为标准输出。ibs=bytes一次读入 bytes 个字节(即一个块大小为 bytes 个字
2011-11-30 09:53:29
678
转载 aptitude 使用快速参考
aptitude 与 apt-get 一样,是 Debian 及其衍生系统中功能极其强大的包管理工具。与 apt-get 不同的是,aptitude 在处理依赖问题上更佳一些。举例来说,aptitude 在删除一个包时,会同时删除本身所依赖的包。这样,系统中不会残留无用的包,整个系统更为干净。以下是笔者总结的一些常用 aptitude 命令,仅供参考。命令作用apt
2011-11-29 16:34:38
352
原创 FireFox下 event is not defined.
解决FireFox下event is not defined.onkeydown="doSearch(event)"function doSearch(e){ var code; if (!e) var e = window.event; if (e.keyCode) code = e.keyCode; else if (e.whi
2011-10-26 14:26:18
976
转载 The reference to entity "characterEncoding" must end with the ';' delimiter
<br />Caused by: org.xml.sax.SAXParseException: The reference to entity "characterEncoding" must end with the ';' delimiter.<br /><br /><br /><br />JPA persistence xml 中报错的写法:<br /><property name="hibernate.connection.url" value="jdbc:mysql://localhost:330
2011-05-14 09:51:00
2701
1
原创 FormCheck.js
/************************************************* 表单校验: *************************************************/function is_Empty(ve){ //空值交验:空返回 true 否则返回 false if(ve.length > 0){ return fals
2010-05-13 09:11:00
804
原创 strrequest
private String strrequest(String input){//返回big5码/并将特殊符号转化 if(input!=null){ try { // public static String replaceHTML(String input) char ch= ; StringBuffer buf=new StringBuffer(input.len
2010-03-08 11:52:00
519
原创 selete all
//selete all function SelectTest(){ if(document.tempform.Select){ if(isNaN(document.tempform.Select.length)){ if(document.tempform.SelectAll.checked==true) document.tempform.Select.checked=true;
2010-03-06 15:56:00
665
原创 MyTool
package com;import java.io.*;import java.math.BigDecimal;import java.sql.Date;import java.text.DateFormat;import java.text.SimpleDateFormat;import javax.servlet.ServletRequest;import javax.serv
2010-03-03 10:50:00
798
原创 dateToStr and strToDate
public static Date strToDate(String s) { java.sql.Date date = null; try { date = Date.valueOf(s); } catch(Exception exception) { dat
2010-03-03 10:46:00
656
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人