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 |
Can a constructor be used in place of init() method to initialize a servlet?
How many messaging models do jms provide for and what are they?
What are the different types of directives available in jsp?
What is out println in jsp?
How can a cookie is deleted with JSP?
Explain lifecycle methods.
Where is jsp used?
What are the different types of jstl tags?
What is welcome file list?
What are directives? What are the different types of directives available in jsp?
Where we use assertion in java programming?
What is the difference in using request.getrequestdispatcher() and context.getrequestdispatcher()?