How to set a cookie in JSP?
Answers were Sorted based on User's Feedback
Answer / venkat
<%
Cookie mycookie = new Cookie("aName","aValue");
response.addCookie(mycookie);
%>
| Is This Answer Correct ? | 18 Yes | 2 No |
Answer / anji87543
<%
Cookie mycookie = new Cookie("aName","aValue");
response.addCookie(mycookie);
%>
| Is This Answer Correct ? | 5 Yes | 2 No |
What is jsp declaration?
How can I prevent the output of my jsp or servlet pages from being cached by the browser?
Perform a browser redirection from a jsp page?
Why is used in jsp?
How can you avoid scriptlet code in jsp?
What does jsp mean?
Define Static Block.
How do I prevent the output of my jsp or servlet pages from being cached by the browser?
Explain some jsp life-cycle methods that can be overridden.
What are the attributes of page directive?
What is jsp and how it works?
What is jsp expression language and what are it’s benefits?