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

What is the difference between servlet config and servlet
context.

Answer Posted / vkrishna88

ServletConfig:
1)An object of ServletConfig exists one per Servlet...
2)An object of ServletConfig will be created when
init(ServletConfig)method is executed...
3)The data to a servlet which related to ServletConfig
object must be written in <init-param>....</init-param> with
in <servlet>…</servlet> of web.xml....
4)An object of ServletConfig will exists as long as a
specific Servlet is executing.

ServletContext:
1)An object of ServletContext exists one per web application....
2)An object of ServletContext will be created when we deploy
the web application in servlet container or servlet
execution environment......
3)The common data or global data related to ServletContext
must be written under <context-param>…</context-param> with
in <web-app>....</web-app> and outside of
<servlet>...</servlet> of web.xml....
4)An object of ServletContext will exists until the entire
web application completed its execution.....

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how many jsp scripting elements are there and what are those?

1016


How do you create a cookie using servlet?

1170


How does java thread pool work?

1093


How can the referrer and the target urls be used in servlet?

1009


What is the use of servlet context?

1041


Differentiate between the print writer and servlet output stream?

995


What do you mean by deployment descriptor?

1057


What is called Scriptlet?

1099


hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code

2778


What is meant by a servlet?

1100


What is servlet configuration?

1067


How to get the server information in a servlet?

1170


Why servlet is mostly used?

1239


What’s the difference between genericservlet and httpservlet?

1111


What is http servlet? Explain with the help of an example.

1064