This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Servlets and the fly likes ServletConfig and ServletContext Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "ServletConfig and ServletContext" Watch "ServletConfig and ServletContext" New topic

ServletConfig and ServletContext

tmsenthil kumar

Joined: Aug 10, 2004
Posts: 11
Can any one tell me What is Servlet Config and What is Servlet Context and
What is difference between Servlet Config and Servlet Context?
Rahul Juneja
Ranch Hand

Joined: Aug 03, 2002
Posts: 425
Differnce in both ?

Rahul Juneja
ThoughtClicks -
Pandurangan Rakesh

Joined: Jun 06, 2004
Posts: 24
Hi Senthil
ServletConfig is for each particular Servlet Whereas ServletContext is for a Servlet Application.

I agree. Here's the link:
subject: ServletConfig and ServletContext
It's not a secret anymore!