摘要:今天第一次知道
阅读全文
posted @ 2007-04-20 23:11
|
|||
随笔分类 - 基础知识扫盲
摘要: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
摘要:假定应用服务器可通过以下路径访问网页: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
摘要:1. Cookie 保存在客户端,形式可以是文件或者浏览器内存块内2. 一个 Cookie 一般指一个应用(没有 crossContext 的情况下),而不是指一个键值对3. Session 是通过 Cookie 实现的,Session 的 ID 以 Cookie 的形式保存客户端,作为 Session 校验凭证4. Cookie 在客户端和服务端之间是通过每次请求的 HTTP 头部实现的
阅读全文
posted @ 2007-03-09 10:30
摘要:public void setGoback(String goback) { this.goback = "true".equalsIgnoreCase(goback); }因为如果 goback 是 null ,null 是没有 equals.... 方法的
阅读全文
posted @ 2007-03-07 17:47
摘要:JSP 按地址引用,JSP TAG 按值引用
阅读全文
posted @ 2007-03-07 14:26
摘要:private protected public friendly static final 等的作用域
阅读全文
posted @ 2007-02-02 09:30
|
|||