Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what are these servlets

 
Archies Gomes
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone please tell me why and when servlets are used?

[corrected spelling, reduced from ten to one question mark - Dave]
[ November 18, 2005: Message edited by: David O'Meara ]
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check out the book below. Or better still, search google

Servlet Book
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A Java application runs on the client machine 'inside' a JVM.
An Applet is a Java program which runs in a browser inside an 'Applet container', ie something designed to contain an Applet.
A Servlet is a Java program which runs on a server inside a 'Servlet container', ie something designed to contain an Servlet.
 
Paul Bourdeaux
Ranch Hand
Posts: 783
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wow, that is a pretty broad question that could potentially generate a lot of answers.

Servlets play a similar role that CGI programs did back in the "old" days of the web. They provide dynamic content and "just in time" web pages. However, servlets can be much more than just a helper app. I would recommend googling for Servlet Tutorial" or checking out Head First Servlets & JSP for a thorough introduction.
[ November 18, 2005: Message edited by: Paul Bourdeaux ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic