- Timestamp:
- 10/03/08 02:53:29 (3 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/java/misc/http-cookie-parser/trunk/webapp/WEB-INF/httpCookieTest.jsp
r20542 r20544 46 46 47 47 <% 48 String cookieRaw = (String) request.getHeaders("cookie").nextElement(); 48 Enumeration cookies = request.getHeaders("cookie"); 49 if(cookies.hasMoreElements()) { 50 String cookieRaw = (String) request.getHeaders("cookie").nextElement(); 49 51 %> 50 52 <table border> 51 53 <% 52 for(String part : cookieRaw.split("; +")) {53 String key = part.substring(0, part.indexOf('='));54 String value = part.substring(part.indexOf('=')+1);54 for(String part : cookieRaw.split("; +")) { 55 String key = part.substring(0, part.indexOf('=')); 56 String value = part.substring(part.indexOf('=')+1); 55 57 %> 56 58 <tr><td><%= key %></td><td><%= value %></td></tr> 57 59 <% 60 } 58 61 } 59 62 %>
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)