火星文 技术研习社

Noname Cat, Keep Thinking
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 2 3 4 5 6 7 8 9 ··· 19 下一页

2007年4月6日

摘要: http://java.sun.com/j2se/1.5.0/docs/guide/language/foreach.htmlIterating over a collection is uglier than it needs to be. Consider the following method, which takes a collection of timer tasks and can... 阅读全文

posted @ 2007-04-06 11:10 剑廿三 阅读(452) 评论(0) 推荐(0)

2007年4月4日

摘要: 假定应用服务器可通过以下路径访问网页:http://localhost:8080/a/...http://localhost:8080/b/...http://localhost:8080/test/....其中 a 对应 a.war 目录,b 对应 b.war 目录,test 对应 test.war 目录若在 test.war 中部署一个 filter ,url-pattern 设置成 /* ,... 阅读全文

posted @ 2007-04-04 10:22 剑廿三 阅读(984) 评论(0) 推荐(0)

2007年3月9日

摘要: 1. Cookie 保存在客户端,形式可以是文件或者浏览器内存块内2. 一个 Cookie 一般指一个应用(没有 crossContext 的情况下),而不是指一个键值对3. Session 是通过 Cookie 实现的,Session 的 ID 以 Cookie 的形式保存客户端,作为 Session 校验凭证4. Cookie 在客户端和服务端之间是通过每次请求的 HTTP 头部实现的 阅读全文

posted @ 2007-03-09 10:30 剑廿三 阅读(226) 评论(0) 推荐(0)

2007年3月7日

摘要: public void setGoback(String goback) { this.goback = "true".equalsIgnoreCase(goback); }因为如果 goback 是 null ,null 是没有 equals.... 方法的 阅读全文

posted @ 2007-03-07 17:47 剑廿三 阅读(476) 评论(0) 推荐(0)

摘要: JSP 按地址引用,JSP TAG 按值引用 阅读全文

posted @ 2007-03-07 14:26 剑廿三 阅读(1703) 评论(0) 推荐(0)

2007年2月28日

摘要: events -> remote & focusremote -> event -> (key, focus, enable, default, scriptcontent) 阅读全文

posted @ 2007-02-28 18:06 剑廿三 阅读(156) 评论(0) 推荐(0)

摘要: 在某嵌入式应用中,需要对每个页面进行所有请求参数(焦点位置)的保存记忆和恢复、对每个页面进行日志记录以分析用户行为需要用一种称为页面流的工具去完成以上这些动作。携带参数:focusurl....处理器添加参数:isback=1 or 0 阅读全文

posted @ 2007-02-28 16:32 剑廿三 阅读(960) 评论(0) 推荐(0)

摘要: 正常的cookie只能在一个应用中共享,即一个cookie只能由创建它的应用获得。 1.可在同一应用服务器内共享方法:设置cookie.setPath("/"); 本机tomcat/webapp下面有两个应用:cas和webapp_b, 1)原来在cas下面设置的cookie,在webapp_b下面获取不到,path默认是产生cookie的应用的路径。 2)若在cas下面设置cookie的时候,增... 阅读全文

posted @ 2007-02-28 12:23 剑廿三 阅读(1602) 评论(0) 推荐(0)

摘要: 自动监听器 PropertiesListener package org.stephencat.listener;import javax.servlet.*;/** * 自动监听器 * @author stephen * */public class PropertiesListener implements ServletContextListener { /** * ... 阅读全文

posted @ 2007-02-28 11:49 剑廿三 阅读(2359) 评论(0) 推荐(0)

2007年2月6日

摘要: 特殊陈旧浏览器下的按键焦点控制 test1test2test3test4test5test6test7test8id key pc key 阅读全文

posted @ 2007-02-06 17:35 剑廿三 阅读(358) 评论(0) 推荐(0)

2007年2月2日

摘要: 1. C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ROOT 下直接创建 2. C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\server.xml增加 --> ... 阅读全文

posted @ 2007-02-02 11:19 剑廿三 阅读(1485) 评论(0) 推荐(0)

摘要: 分两步走: (1). 实现 javax.servlet.ServletContextListener 接口的两个方法:contextInitialized()和contextDestroyed() contextInitialized():当Servlet容器启动时会执行 contextDestroyed():当Servlet容器停止时会执行 (2). 在contextIn... 阅读全文

posted @ 2007-02-02 11:17 剑廿三 阅读(2371) 评论(0) 推荐(0)

摘要: private protected public friendly static final 等的作用域 阅读全文

posted @ 2007-02-02 09:30 剑廿三 阅读(1523) 评论(0) 推荐(0)

2007年1月24日

摘要: http://dev2dev.bea.com.cn/techdoc/2004122805.htmlJ2EE应用程序中的性能提升--清除耗时且低效的bug 时间:2004-12-28作者:GVB Subrahmanyam, Shankar Itchapurapu浏览次数: 7071 本文关键字:性能, JDBC, JVM, EJB Java很热门,尽管只诞生了9年,但它已经成为世界上领... 阅读全文

posted @ 2007-01-24 15:08 剑廿三 阅读(286) 评论(0) 推荐(0)

2007年1月14日

摘要: DateFormat DecimalFormat PAGE_INTAG_CHUNK_articleList DateFormat DecimalFormat 阅读全文

posted @ 2007-01-14 23:17 剑廿三 阅读(281) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 ··· 19 下一页