Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


How to set a cookie in JSP?

Answers were Sorted based on User's Feedback



How to set a cookie in JSP?..

Answer / venkat

<%
Cookie mycookie = new Cookie("aName","aValue");
response.addCookie(mycookie);
%>

Is This Answer Correct ?    18 Yes 2 No

How to set a cookie in JSP?..

Answer / anji87543

<%
Cookie mycookie = new Cookie("aName","aValue");
response.addCookie(mycookie);
%>

Is This Answer Correct ?    5 Yes 2 No

Post New Answer

More JSP Interview Questions

Explain about the Scriplet and Exclamatory Tag?

1 Answers   HCL,


How do I open a jsp file?

0 Answers  


Which syntax is used to comment jsp?

0 Answers  


Which attribute specifies a jsp page that should process any exceptions thrown but not caught in the current page?

0 Answers  


What are the different types of jsp tags?

0 Answers  






How is jsp used in the mvc model?

0 Answers  


What is scriptlet and what is expression?

0 Answers  


How many tags are there in jsp?

0 Answers  


Can a constructor be used in place of init() method to initialize a servlet?

0 Answers  


What is the difference between include directive and include action?

0 Answers  


Explain pge Directives.

0 Answers  


What are the advantages of jsp over servlet?

0 Answers  


Categories