// 改
// public void update(Object o, String table) {
// String id = "";
// String name = "";
// String id1 = "";
// String name1 = "";
// Class c = o.getClass();
// Field[] f = c.getDeclaredFields();
// for (int i = 0; i < f.length; i++) {
// if (f[i].getName().contains("order" ...
MYSQL为DATATIME型的时候
pstmt.setTimestamp(8, new Timestamp(System.currentTimeMillis()));
直接插入代码
不用DATA行 记录下
Connection conn=dao.getConn();
Date d=new Date();
System.out.println(d);
StringBuffer sql=new StringBuffer();
sql.append("insert into a values ");
for(int i=0;i<1000000;i++){
sql.append("("+i+"),");
}
String sql1=sql.substring(0,sql.length()-1);
Date d2=new D ...
package com.hcwy.dao;
import java.io.File;
import java.io.IOException;
import jxl.Cell;
import jxl.Sheet;
import jxl.Workbook;
import jxl.read.biff.BiffException;
public class OperExcel {
public static void main(String[] args) {
try {
Workbook workbook = Workbook.getWorkbook( ...
- 09:38
- 浏览 (41)
- 评论 (0)
XMLOutputter XMLOut = new XMLOutputter(" ", true);
直接在构造函数里写上这个就行
public static void main(String[] args) {
for(int i=0;i<100;i++){
System.out.println(genRandomNum(8));
}
}
/**
* 生成随即密码
*
* @param pwd_len
* 生成的密码的总长度
* @return 密码的字符串
*/
p ...
package com.hcwy.dao;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.List;
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.JDOMException;
import org.jdom.input.SAXBuilder;
import org.jdom.output.XMLOutputter;
publ ...
ASP的 以后有用
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","http://www.baidu.com/"
Response.End
%>
- 09:03
- 浏览 (63)
- 评论 (0)
引用
在JAVA类中直接写
HttpServletRequest request = WebContextFactory.get().getHttpServletRequest();
呵呵得到了request 那么session就直接用
request.getsession吧 呵呵
- 10:39
- 浏览 (118)
- 评论 (0)
- 浏览: 7190 次
- 性别:

- 来自: 武汉

- 详细资料
搜索本博客
最近加入圈子
链接
最新评论
-
grails+flex写hello
不知道为什么访问mxml编译出的xxx.html不行,而访问xxx.mxml就可 ...
-- by wldandan -
jsp页面生成静态化
简单的说就是把JSP 页面IO 写到HTML 用到的方法是HttpURLCon ...
-- by xi5566 -
jsp页面生成静态化
就是EL表达式
-- by qq493197363 -
jsp页面生成静态化
其实你用jstl多简单啊
-- by qq493197363 -
jsp页面生成静态化
...
-- by qq493197363






评论排行榜