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 maintain sessions in jsp?can you tellme the methods.

Answer Posted / faizan samad

String name="faizan";
session.setAttribute("user",name);


String sessionuser=session.getAttribute(name);
out.println("welcome"+sessionuser);
it will display as "Welcome Faizan".

Is This Answer Correct ?    17 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is jsp language?

879


Define Static Block.

906


Can constructor be used instead of init(), to initialize servlet?

898


Mention some important jsp action tags.

906


What is welcome file list?

907


Why does _jspService() start with an ‘_’ but other lifecycle methods do not?

939


How do we configure init params for jsp?

902


what is the extended star schema

2685


Is jsp server side scripting language?

929


Define Expression

917


What class.forname will do while loading drivers?

947


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

954


Why taglib is used in jsp?

914


Mention the implicit objects in a jsp.

948


What are jsp lifecycle methods?

978