摘要:
If your application uses session objects, you must ensure that session tracking is enabled by having the application rewrite URLs whenever the client turns off cookies. You do this by calling the response’s encodeURL(URL) method on all URLs returned by a servlet. This method includes the session ID 阅读全文
摘要:
An HTTP request URL contains the following parts:http://[host]:[port][request-path]?[query-string]The request path is further composed of the following elements:Context path: A concatenation of a forward slash (/) with the context root of the servlet’s web application.Servlet path: The path section 阅读全文
摘要:
1 public V put(K key, V value) { 2 if (key == null) 3 return putForNullKey(value);//处理Null值 4 int hash = hash(key.hashCode());//获得Hashcode再处理 5 int i = indexFor(hash, table.length);//获得该值在数组中的位置 6 for (Entry<K,V> e = table[i]; e != null; e = e.next) {... 阅读全文