- 浏览: 36781 次
- 性别:
- 来自: 深圳
最新评论
-
Airflare:
你这也不对啊,各种报错啊!DocumentHelper哪来的啊 ...
XML读写 -
myali88:
为什么我用$.getJSON请求返回的始终是一个JSON格式的 ...
jQuery+JSON
文章列表
log4j.logger.com.ibatis = DEBUG
log4j.logger.com.ibatis.common.jdbc.SimpleDataSource = DEBUG
log4j.logger.com.ibatis.common.jdbc.ScriptRunner = DEBUG
log4j.logger.com.ibatis.sqlmap.engine.impl.SqlMapClientDelegate = DEBUG
log4j.logger.java.sql.Connection = DEBUG
log4j.logger.java.sql.Statem ...
1.applicationContext-common.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/sche ...
http://blog.sina.com.cn/s/blog_5f240fc40100d3m3.html
var url="server?par="+encodeURI(encodeURL("中文"));
$.get(url,null,function data(){});
服务器端:
String par= ServletActionContext.getRequest().getParameter("par");
par=URLDecoder.decode(par, "UTF-8");
1.Action
package com.fayhong.action.basicdata;
import java.util.List;
import org.apache.struts2.ServletActionContext;
import net.sf.json.JSONArray;
import com.fayhong.model.Country;
import com.fayhong.service.basicdata.BasicDataService;
import com.opensymphony.xwork2.Action;
import c ...
DELIMITER $$
DROP TRIGGER `databaseName`.`triggerName`$$
CREATE TRIGGER `databaseName`.`tiggerName` BEFORE/AFTER INSERT/UPDATE/DELETE on `databaseName`.`tableName`
FOR EACH ROW BEGIN
END$$
DELIMITER ;
eg:
DELIMITER $$
DROP TRIGGER `test`.`ttt`$$
create trigger `test`.`ttt` AFTER UPDATE on `te ...
1.delimiter //
create procedure updateCity (in parameter integer)
begin
update city set postalcode='518000' where cityId=parameter;
end;
//
2.
delimiter //
create procedure selectCity ()
begin
select * from city;
end;
//
3.
public void callProcUpdateCity(int id){
String u ...
Javax.comm简介
Javax.comm是Sun公司提供的,用于开发平台独立的通讯应用程序的扩展API。(ps:这里javax的x很准确地表明了它是一个扩展包,而不是核心包(core package),但由于历史原因,javax下的并不都是扩展包,比如swing包已经是Java核心架构的一部分了,不过为了与Java1.1编码兼容,仍使用javax.swing。)javax.comm可以访问RS232接口(串口)及有限制地访问IEEE-1284(并口)。
下载
需要到其官方主页http://java.sun.com/products/javacomm/下载这个API,目前的 ...
JqueryServlet.java
package com.fayhong.util;
import java.io.IOException;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import net.sf.json. ...
<Context path="/cys" docBase="C:\Documents and Settings\Administrator\workspace\cys\WebRoot" reloadable="true" />
- 2009-03-28 17:33
- 浏览 840
- 评论(0)
package com.fayhong.test;
public class TestThread {
public static void main(String[] args) {
ThreadTestImplements tsi = new ThreadTestImplements();
Thread threadTestImplements = new Thread(tsi);
threadTestImplements.start();
Thread threadTestExtend=new ThreadTestExtend();
...
- 2009-02-10 17:15
- 浏览 813
- 评论(0)
1.
Map session=ActionContext.getContext().getSession();
session.put("xiajin", "test");
2.
HttpSession httpSession=ServletActionContext.getRequest().getSession();
httpSession.setAttribute("test", "jin");
<s:property value="#se ...
- 2009-02-10 11:29
- 浏览 3170
- 评论(0)
package com.fayhong.test;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
public class Stream {
public static void main(String arg[]){
try {
Buf ...
- 2009-02-05 17:58
- 浏览 3603
- 评论(0)
package com.fayhong.test;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
public class TestObjectIO {
pu ...
- 2009-02-05 17:55
- 浏览 803
- 评论(0)