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...

Is there any differance b/w getting servlet context from
servlet config and session? if yes then what is that?

Answer Posted / nisha

Servlet config is one per servlet and servlet context is one for
the whole webapplication.

Servlet config is used to pass deploy time information to servlet
where servlet context can be used to get information about the
container,server.

Is This Answer Correct ?    13 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?

1309


How do you find out what client machine is making a request to your servlet

1105


Explain the difference between servlet and cgi?

1213


How can we refresh automatically when new data has entered the database?

1161


What is servlet looping or chaining?

1188


Whether thread can be used in servlets?

1262


Where do you define dispatcherservlet?

1104


What is the difference between a generic servlet and http servlet?

1043


How will you pass values from HTML page to the servlet?

1100


How to get the actual path of servlet in server?

1271


What is the functionality of actionservlet and requestprocessor?

1141


Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?

1146


What are the exceptions thrown by servlets? Why?

1245


How do cookies work in servlets?

1102


List out difference between a JavaBean from a Servlet?

1081