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 the purpose of jsp and why it is widely used?
What is session getattribute in jsp?
Explain about the Scriplet and Exclamatory Tag?
Why jsp is used in java?
How does the Jsp Expressions works ? What happens at the back?
Perform a browser redirection from a jsp page?
Can Static method be Override?
What will happen if iselignored attribute is set as false?
Is there a way to reference the "this" variable within a jsp page?
What is a hidden comment in jsp?
what is the extended star schema
What is jsp and its features?