This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes Servlets and the fly likes about ServletContext and ServletConfig Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "about ServletContext and ServletConfig" Watch "about ServletContext and ServletConfig" New topic
Author

about ServletContext and ServletConfig

vara prasad
Ranch Hand

Joined: Dec 21, 2004
Posts: 47
what is ServletContext and what is ServletConfig exatly?
and what is the actual differances ?
and what is the uses of both ServletContext and ServletConfig?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

The javadocs are your friend.

http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletContext.html
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletConfig.html


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

Joined: Feb 20, 2001
Posts: 580
The ServletConfig object exposes information specific to your servlet (like initialization parameters). The ServletContext basically represents your webapp.


James Carman, President<br />Carman Consulting, Inc.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: about ServletContext and ServletConfig