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 we can check in particular page the session will be
alive or not

Answer Posted / aseet padhi

U can use request.getSession(false); method in
HttpServletRequest interface.It returns the HttpSession
associated with this request or null if the request has no
valid session.

Is This Answer Correct ?    10 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe servlet?

1045


Describe some assignments that are executed by servlet container?

1081


Define the life cycle of a servlets.

1064


How do I use cookies to store session state on the client?

970


Which is better jsp or servlet?

1056


Why HttpServlet class is declared abstract?

1218


What is the process for chaining servlet?

1051


Why do we need a constructor in a servlet if we use the init method?

1053


How to rectify errors in java servlet while compilation?

959


How will two or three servlets interact or communicate with each other?

1450


Can you create a deadlock condition on a servlet?

1083


How to upload a file to the server using servlet?

1000


How a servlet is unloaded?

1091


How to find whether a parameter exists in the request object?

1110


Who is responsible to create the object of servlet?

1205