This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes Cookies using Jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Cookies using Jsp" Watch "Cookies using Jsp" New topic
Author

Cookies using Jsp

Garry Kalra
Ranch Hand

Joined: May 25, 2001
Posts: 111
How can i use cookies using JSP
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
Same as with servlets.
Cookie cookie = new Cookie("mycookie", "myvalue");
// set other cookie params
response.addCookie(cookie);

42
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cookies using Jsp
 
Similar Threads
simple doubt in session management
My HttpServletRequest and I don't get along. I need a new one.
JSP page accessing ASP cookies
Session.isNew() always true in tomcat3.3
New Session Created Randomly in Tomcat 5.0.28