Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is a Servlet

Status
Not open for further replies.

florida41

Technical User
May 13, 2004
95
US
What is a Servlet? I know what a JavaBean is but not sure what a Servlet does or how it is different than beans?

I think applets are Client side programs similiar to JavaScript?

Also what are good books that I can learn Java?
 
A servlet is a program that runs in a servlet container, like Tomcat. Think of it as a dynamic web page. When the container gets an HTTP request for the servlet 'web page', it invokes the servlet. The servlet 'prints' the web page, and the container sends it back to the browser. The browser just receives some HTML as normal, so the servlet appears to be the same as a static web page.

But obviously, the servlet can be as complicated as you want, and can even build the response based on a database query.

Applets are client side programs that are downloaded from the server before being executed. They are (usually) subject to a number of limitations on what they can do, for security reasons.
 
Did you even bother searching for info on this subject. Just 4 posts earlier, you could have found many of your answers ...

thread269-840361
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top