- 浏览: 12879 次
- 性别:
- 来自: 西安
最新评论
文章列表
package com.web.servlet.util;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Properties;
/**
* 读取配置文件
* @author liujian
*
*/
public class ReadConfigFile {
...
http://bbs.csdn.net/topics/390321854
http://tingerh.blog.163.com/blog/static/2148720142012111903855339/
http://huangwen200301930.blog.163.com/blog/static/484849812011111142623315/
http://blog.csdn.net/jaminwm/article/details/7183773
编码CODE:
http://blog.csdn.net/xiongchao2011/article/details/7276834
1.cookie.setMaxAge(maxAge);
这个属性没有设置,则这个cookie即随着浏览器的关闭即消失
2.cookie.setPath("/");
//设置路径,这个路径即该工程下都可以访问该cookie 如果不设置路径,那么只有设置该cookie路径及其子路径可以访问
Java例子:
增加cookie:
public static void addCookie(HttpServletResponse response,String name,String value,int maxAge){ ...
异步调用json的使用
乱码处理:
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("application/json "); response.setCharacterEncoding("utf-8"); PrintWriter out ...
function GetInvoices(record, expander, callback) {
Ext.Ajax.request( {
url : 'getDetailInvoices.json',
params : {
'chkNo' : record.data.chkNo,
'vendorNo' : record.data.vendNo
},
success : function(response) {
var data ...