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 are scripting elements?
What are the advantages of jstl?
Which package does jsp api consist of?
How can I implement a thread-safe jsp page? What are the advantages and disadvantages of using it?
Which attribute specifies a jsp page that should process any exceptions thrown but not caught in the current page?
What are JSP scripting elements?
How session is achieved in JSP?(once user logs out,if he press back button of browser he should not be allowed to same page)
Is jsp static or dynamic?
When does a container initialize multiple jsp / servlet objects?
What is scriptlet, expression and declaration in jsp?
How can the applets be displayed in the jsp? Explain with an example.
What is expression language injection?