File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
 
Consider Paul's rocket mass heater.
 
subject: Cookies using Jsp