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 Servlets and CGI 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 "Servlets and CGI" Watch "Servlets and CGI" New topic

Servlets and CGI

Ranch Hand

Joined: Nov 23, 2000
Posts: 67
1.What is the difference between servlets and CGI?
2.How the sever identifies the users in an internet?Is it only by the session tracking?
Pragya Prakash
Ranch Hand

Joined: Sep 18, 2000
Posts: 42
Servlets are an effective replacement for CGI. Servlets provide a way to generate dynamic documents that are easier to write and faster to run.
CGI makes a new process for every request, making it slower & more memory-expensive. Servlets solve these problems.
As regards ur 2nd question, most web applications have an authentication mechanism, which relies on either cookies or database.
If u need further information on how this comes about, let me know.
I agree. Here's the link:
subject: Servlets and CGI
It's not a secret anymore!