How to set a cookie in JSP?

Answer Posted / venkat

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

Is This Answer Correct ?    18 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hpcl information systems officer 2008 Question Papers or any last previous questions papers thanks in advance shyamprasad71@gmail.com shyamprasad71@gmail.com

1764


How can we use beans in jsp?

514


Explain the jsp implicit objects?

523


Mention some important jsp action tags.

512


What are the jsp standard actions?

522






How can information from one JSP be passed to another JSP?

591


What is c tag in jsp?

486


Define Expression

569


What is application scope in jsp?

510


What are the different scopes an object can have in a jsp page?

518


How to disable session in jsp?

526


What is pagecontext jsp?

523


Is jsp a front end?

551


Why is jstl used?

508


Why taglib is used in jsp?

516