摘要: using System.Xml; try { //记录访问数据 String down_file = ""; String count = ""; String page = ""; XmlDocument doc = new XmlDocument(); doc.Load(Server.MapPath("~... 阅读全文
posted @ 2012-02-29 14:13 暗夜螃蟹 阅读(139) 评论(0) 推荐(0)
摘要: <html><head><title>jQuery Ajax 实例演示</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/></head><script src="http://code.jquery.com/jquery-1.4.3.js"></script><script type="text/javascript" 阅读全文
posted @ 2012-02-23 20:49 暗夜螃蟹 阅读(215) 评论(0) 推荐(0)
摘要: public static String getStringNoBlank(String str) { if(str!=null && !"".equals(str)) { Pattern p = Pattern.compile("\\s*|\t|\r|\n"); Matcher m = p.matcher(str); String strNoBlank = m.replaceAll(""); return strNoBlank; ... 阅读全文
posted @ 2012-02-15 17:39 暗夜螃蟹 阅读(819) 评论(0) 推荐(0)
摘要: /** * 实现对Java配置文件Properties的读取、写入与更新操作 */ package test; import java.io.BufferedInputStream; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.Pro 阅读全文
posted @ 2012-02-07 16:35 暗夜螃蟹 阅读(148) 评论(0) 推荐(0)
摘要: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <head> <title>异步调用JSON</title> </head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript"> & 阅读全文
posted @ 2012-01-12 16:35 暗夜螃蟹 阅读(648) 评论(0) 推荐(0)
摘要: 页面框架中经常有缓存,看不到最新的结果很是无语。最近在网上收集到比较有效的方法记录下来以备后用。 在页面开始加入下面的设置感觉还不错 response.setHeader("cache-control","no-cache"); response.setHeader("pragma","no-cache"); response.setHeader("Cache-Control","no store");//HTTP 1.1 response.setHeader("P 阅读全文
posted @ 2012-01-06 18:28 暗夜螃蟹 阅读(175) 评论(0) 推荐(0)
摘要: SQL:select id,pid,treename,url,treetype from web_menu_tree where roleid = 1 and delflag = 1 start with id = 1 connect by prior id = pid表结构-- Create tablecreate table WEB_MENU_TREE( ID NUMBER not null, PID NUMBER, TREENAME VARCHAR2(200), URL VARCHAR2(200), ROLEID ... 阅读全文
posted @ 2011-12-02 11:03 暗夜螃蟹 阅读(205) 评论(0) 推荐(0)
摘要: 提供部分代码 String sql="*****"; List list = commonDao.getAllRecord(sql);GetProperties gp = new GetProperties("dictionary");String spath = ServletActionContext.getServletContext().getRealPath("/")+ gp.getProp("uploadpath");String name = "planbuycar"+ StrUt 阅读全文
posted @ 2011-08-04 13:18 暗夜螃蟹 阅读(486) 评论(0) 推荐(0)
摘要: <%@page language="java" contentType="application/x-msdownload" import='java.io.*,java.util.*' pageEncoding="gb2312" %><%String filenamedisplay = ""; String type=request.getParameter("type")!=null?request.getParameter("type" 阅读全文
posted @ 2011-07-28 16:13 暗夜螃蟹 阅读(178) 评论(0) 推荐(0)
摘要: <?php/* * Created on 2011-7-13 * long.tang * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */?><?php require_once('conn.php'); require_once('checklogin.php'); require_once('function.php');//用php将mysql中 阅读全文
posted @ 2011-07-28 16:03 暗夜螃蟹 阅读(143) 评论(0) 推荐(0)