How to set a cookie in JSP?

Answers were Sorted based on User's Feedback



How to set a cookie in JSP?..

Answer / venkat

<%
Cookie mycookie = new Cookie("aName","aValue");
response.addCookie(mycookie);
%>

Is This Answer Correct ?    18 Yes 2 No

How to set a cookie in JSP?..

Answer / anji87543

<%
Cookie mycookie = new Cookie("aName","aValue");
response.addCookie(mycookie);
%>

Is This Answer Correct ?    5 Yes 2 No

Post New Answer

More JSP Interview Questions

What is the full form of jsp?

0 Answers  


How to include static files in a jsp?

0 Answers  


What is jsessionid?

0 Answers  


What is the use of implicit object named "application" in Application?

0 Answers   Indriyn Data Labs,


What is jsp translation phase?

0 Answers  






what are the tools used in your project , How to ask the answer this question

0 Answers  


why we use jsp as view

3 Answers   NCS, Scope International,


What is jsp declaration?

0 Answers  


How can we avoid direct access of jsp pages from client browser?

0 Answers  


What are the life-cycle methods for a jsp?

0 Answers  


How clear chache and buffer of opera browser.

0 Answers  


How can information from one JSP be passed to another JSP?

0 Answers  


Categories