Meaningless Drivel is fun!
The moose likes Servlets and the fly likes Servlet Context & Servlet Config Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet Context & Servlet Config" Watch "Servlet Context & Servlet Config" New topic

Servlet Context & Servlet Config

Saurabh Agrawal
Ranch Hand

Joined: Oct 07, 2003
Posts: 244
Hi folks,
Can anyone please tell me the exact differences between Servlet context And Servlet config.

I hope to get some response on this as i know this is relatively a simple question for someone working on servlets...

Success is not doing extraordinary things but doing ordinary things extraordinarily well.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Do a search in this forum with the terms:
context config difference

You'll get quite a few threads.
This question has been asked and answered several times in the last month or so.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Sarath Mohan
Ranch Hand

Joined: Mar 17, 2001
Posts: 213
SevletContext deals the web application as whole where we can have a lot of servelets while ServletConfig is for configuring a single servlet

Sarath Mohan
I agree. Here's the link:
subject: Servlet Context & Servlet Config
It's not a secret anymore!