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

How does a jsp engine work?

925


Mention the jstl core tags.

887


How do you delete a cookie within a jsp?

1150


How does error handling occur with jstl?

936


how to write the code of jsp program?

2416


Can we override the jspinit(), _jspservice() and jspdestroy() methods?

925


How can we use beans in jsp?

975


What is jsp translation time?

911


Can we use jsp implicit objects in a method defined in jsp declaration?

959


What is out in jsp?

893


Which categories can be divided jstl tags, give examples.

881


Why is jsp used for?

932


How do I prevent the output of my jsp or servlet pages from being cached by the browser?

951


Can we call servlet from jsp?

881


What is a translation unit?

924