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 |
Give the use of exception object.
What is directive jsp?
Where we use assertion in java programming?
What do you know about pagecontext and what are the advantages of using it?
What are the components of jsp?
What is difference between sendredirect and forward?
How are the jsp requests handled?
Perform a browser redirection from a jsp page?
Why is it not necessary to configure standard jsp tags in web.xml?
Why do we need servlets and jsp?
can i extend jsp page like other java classes ?
Why do we use jstl tags?