- 浏览: 55997 次
- 性别:
- 来自: 上海
最新评论
文章列表
D:\workspaces_eclipse\apache-tomcat-6.0.36-b2b\bin startup.batSET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9001
D:\workspaces_eclipse\apache-tomcat-6.0.36-b2b\bin catalina.batset JAVA_OPTS=-Xmx1024m -XX:MaxPermSiz ...
D:\Program Files\AppData\Local\MyEclipse\Common\plugins\com.genuitec.myeclipse.product_9.0.0.me201110280006\images
从数据库读取数据到Excel
- 博客分类:
- 基础语言
直接上代码:
<?xml version="1.0" encoding="UTF-8"?>
<beans>
<table classname="classname" class="com.lt.util.policy.matching.vo.FlightCourseVo" tablename="b_flight_course">
<property name="id" column="id" typ ...
JNDI
- 博客分类:
- J2EE+的+13+种核心技术
操纵相对程序运行的盘的根目录
package com.cauc.jndi;
import java.util.Hashtable;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NameClassPair;
import javax.naming.NamingEnumeration;
import javax.naming.NamingException;
public class ReadFile {
public static void ...
<script language="javascript" type="text/javascript">
var code ; //在全局 定义验证码
function createCode()
{
code = "";
var codeLength = 4;//验证码的长度
var checkCode = document.getElementById("checkCode" ...
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script type="text/javascript">
function countDown(secs,surl){
var jumpTo = document.getElementById ...
JS:window.onload
- 博客分类:
- JS
JS:window.onload的使用 (2012-05-10 22:06:08)
标签: window.onload js 分类: JavaScript学习笔记
1、最简单的调用方式
直接写到html的body标签里面,如:
<html>
<body onload="func()">
</body>
</html>
2、在JS语句调用
<script type="text/javascript">
function ...
'DWRUtil','DWREngine'
- 博客分类:
- JS
/** dwr3 版本已经不使用DWRUtil对象了而是采用dwr.util对象。但之前的代码有使用DWRUtil对象。 鉴于直接修改代码的风险大,所有采用window.DWRUtil = dwr.util; 然后修改dwr jar 里的util.js文件,加一句代码 document.write("<script type='text/javascript' src='"+globContextPath+"/js/CompatibleDWr1.1.4.js'></script>"); 为什么不在dwr jar ...
public static void main(String[] args) throws IOException {
File f1=new File("D:\\韩顺平.linux视频教程第0讲.开山篇.wmv");
File f2=new File("E:\\韩顺平.linux视频教程第0讲.开山篇.wmv");
InputStream input=new FileInputStream(f1);
OutputStream output=new FileOutputStream(f2);
DataInputStream ...
char与byte转换
- 博客分类:
- 基础语言
public static void main(String[] args) {
String str="我";
char[] ch=str.toCharArray();
byte[] by =charToByte(ch[0]);
for (int i = 0; i < by.length; i++) {
System.out.println(by[i]);
}
}
public static byte[] charToByte(char c) {
byte[] b = new byte[2]; ...
文本数据读取
public static void main(String[] args) throws IOException {
FileWriter fw=new FileWriter("c:\\bbb.txt");
BufferedWriter bw=new BufferedWriter(fw);
bw.write("你好啊!我不好!");
bw.newLine();
bw.write("哈哈,我又来啦~");
bw.flush();
fw.close();
bw.close( ...
天天搞NC财务,很多基础快忘了,现在每天复习一点点,争取盲写代码能很迅速~
BaseDao
package util;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
public class BaseDao {
private final static String DRIVER="org.gjt.mm ...
public static String genRandomNum(int pwd_len) {
// 35是因为数组是从0开始的,26个字母+10个数字
final int maxNum = 36;
int i; // 生成的随机数
int count = 0; // 生成的密码的长度
char[] str = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9' };
StringBuffer pwd = new StringBuffer("");
Random r = new ...
关于这三个类在字符串处理中的位置不言而喻,那么他们到底有什么优缺点,到底什么时候该用谁呢?下面我们从以下几点说明一下
1 String s = "abcd";
2 s = s+1;
3 System.out.print(s);// result : abcd1
我们明明就是改变了St ...
Struts2启动异常Class: com.opensymphony.xwork2.spring.SpringObjectFactoryFile: SpringObjectFactory.javaMethod: getClassInstanceLine: 209 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:209:-1Caused by: java.lang.NullPointerException at com.opensymphony.xwork2.spring.SpringObjectFactory.getClassI ...