• Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlets and CGI  RSS feed

 
Friend
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!