Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to set a cookie in JSP?

Answer Posted / anji87543

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

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is auto-flush attribute?

1028


How to include static files in a JSP page?

1011


How do I use a scriptlet to initialize a newly instantiated bean?

958


What is the _jspservice() method?

1044


Explain JSP directives.

1023


What is taglibs?

935


What are context initialization parameters?

1047


What are the elements of jsp?

978


Explain handling of runtime exceptions.

1198


Explain jsp lifecycle methods?

1007


Can we use javascript with jsp pages?

989


How to find out the name of the http method using jsp el?

973


How do you prevent the creation of a session in a jsp page and why? What is the difference between include directive & jsp:include action?

1020


What is an expression in jsp?

961


What is jsp and why it is used?

930