Example of import Attribute 
(Continued)
<%
Cookie[] cookies = request.getCookies();
String oldID =
ServletUtilities
.getCookieValue(cookies, "userID",
NO_VALUE);
String newID;
if (oldID.equals(NO_VALUE)) {
newID = randomID();
} else {
newID = oldID;
}
LongLivedCookie cookie = 
new LongLivedCookie("userID", newID);
response.addCookie(cookie);
%>
<%   JSP Expressions   %>
This page was accessed at <%= 
new Date()
%> with a userID
cookie of <%= oldID %>.
39
JSP
www.corewebprogramming.com
Example of import Attribute: 
Result
First access
Subsequent
accesses
40
JSP
www.corewebprogramming.com
20




  

Home

About Services Network Support FAQ Order Contact
 

Java Web Hosting

Our partners:Jsp Web Hosting Unlimited Web Hosting Cheapest Web Hosting  Java Web Hosting Web Templates Best Web Templates PHP Mysql Web Hosting Interland Web Hosting Cheap Web Hosting PHP Web Hosting Tomcat Web Hosting Quality Web Hosting Best Web Hosting  Mac Web Hosting 

Lunarwebhost.net  Business web hosting division of Vision Web Hosting Inc. All rights reserved