• Post Reply Bookmark Topic Watch Topic
  • New Topic

Cookies using Jsp  RSS feed

 
Garry Kalra
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i use cookies using JSP
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Same as with servlets.
Cookie cookie = new Cookie("mycookie", "myvalue");
// set other cookie params
response.addCookie(cookie);
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!