You can use the send the cookie with response(HttpServletResponse).

Some thing like this......

public void sendCookie(HttpServletResponse ) {
                Cookie cookie = new Cookie ("COOKIEID","CookieValue");
                cookie.setMaxAge (age);
                resp.addCookie (cookie);
}

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of SriHari
Sent: Friday, October 05, 2001 2:50 PM
To: [EMAIL PROTECTED]
Subject: Cookies in Tomcat with jsp's


Hai There

Can any one tell me how you are using Cookie concept in Tomcat using jsp's
i have to store a value on clients machine at the time of Logoff an catch
that value at the time of login in and do some process..

I just want to know that r u using  javascript or any other process for this



Regards
SriHari

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to