This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv 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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "difference" Watch "difference" New topic


Pavel Kubal
Ranch Hand

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

Joined: Nov 15, 2004
Posts: 9

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:
subject: difference
It's not a secret anymore!