This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Servlets and the fly likes difference Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "difference" Watch "difference" New topic
Author

difference

Pavel Kubal
Ranch Hand

Joined: Mar 13, 2004
Posts: 356
Hi, newbie question :
what's the difference between ServletContext and Session?
R Bhatia
Greenhorn

Joined: Nov 15, 2004
Posts: 9
Hi,

interface ServletContext
Defines a set of methods that a servlet uses to communicate with its servlet container, for example, to get the MIME type of a file, dispatch requests, or write to a log file.

interface HttpSession
Provides a way to identify a user across more than one page request or visit to a Web site and to store information about that user.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: difference