What is Java Servlets?
Servlets are server side components that provide a
powerful mechanism for developing server side programs. Servlets
provide component-based, platform-independent methods for building Web-based
applications, without the performance limitations of CGI programs. Unlike
proprietary server extension mechanisms (such as the Netscape Server API or
Apache modules), servlets are server as well as platform-independent. This
leaves you free to select a "best of breed" strategy for your servers,
platforms, and tools. Using servlets web
developers can create fast and efficient server side application which can run on any
servlet enabled web server. Servlets run entirely inside the Java
Virtual Machine. Since the Servlet runs at server side so it does not checks the browser
for compatibility. Servlets can access the entire family of Java APIs,
including the JDBC API to access enterprise databases. Servlets can also access
a library of HTTP-specific calls, receive all the benefits of the mature java
language including portability, performance, reusability, and crash protection.
Today servlets are the popular choice for building interactive web
applications. Third-party servlet containers are available for Apache Web
Server, Microsoft IIS, and others. Servlet containers are usually the components of
web and application servers, such as BEA WebLogic Application Server, IBM
WebSphere, Sun Java System Web Server, Sun Java System Application Server and
others.
Servlets are not designed for a specific protocols. It
is different thing that they are most commonly used with the HTTP protocols
Servlets uses the classes in the java packages javax.servlet and
javax.servlet.http. Servlets provides a way of creating the sophisticated server
side extensions in a server as they follow the standard framework and use the
highly portable java language.
HTTP Servlet typically used to:
- Priovide dynamic content like getting the results of
a database query and returning to the client.
- Process and/or store the data submitted by the HTML.
- Manage information about the state of a stateless
HTTP. e.g. an online shopping car manages request for multiple concurrent
customers.

|
Current Comments
9 comments so far (post your own) View All Comments Latest 10 Comments:A servlet program and its compilation process???
Posted by debraj chakraborty on Monday, 04.21.08 @ 23:52pm | #57432
what is the diff. between java and j2ee
Posted by vasanthkumar on Monday, 04.21.08 @ 12:42pm | #57389
what is the diff. between applet and servlet?
Posted by vasanthkumar on Monday, 04.21.08 @ 12:36pm | #57388
needed some example
Posted by ganesan.a on Thursday, 04.17.08 @ 09:51am | #56777
servlets,jsp,adobe flex
Posted by lokesh on Tuesday, 03.25.08 @ 09:58am | #54225
This is the only site i found where in i can get each and everything under one roof.
All the topics are covered in a vary managed form and concepts are explailned very well.
Posted by Anurag on Tuesday, 03.4.08 @ 11:18am | #51262
can u tell me which class in java 1.0.
thank you.
Posted by sandeep on Wednesday, 01.9.08 @ 11:27am | #44840
Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.
No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.
Posted by SayHello() on Monday, 11.19.07 @ 14:18pm | #37807
what is reverse of encapsulation?
Posted by praveen on Saturday, 09.1.07 @ 10:17am | #24681