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 |
Explain the various scope values for tag.
What are request and response objects?
What is jsp container?
How can we disable java code or scripting in jsp page?
Write a simple example for the clone() method.
Where we use assertion in java programming?
Which categories can be divided jstl tags, give examples.
What is contextpath in jsp?
How many tags are provided by jstl?
Explain static method?
How does a servlet communicate with a jsp page?
Why is used in jsp?