Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Servlets What is Java Servlets?

Related Tutorials


 
 

Share on Google+Share on Google+

What is Java Servlets?

Advertisement
Servlets are server side components that provide a powerful mechanism for developing server side programs.

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.
Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: December 12, 2008

Related Tutorials

Discuss: What is Java Servlets?   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:21
satyanarayana
March 28, 2012
servlets

nice answer i can understand
ragh
April 20, 2012
java

difference between rmi and servlet
KRISHNAKUMAR
June 13, 2012
question..

what is the different between applet and servlet????????????
praveen
June 23, 2012
servlet

what is servlet,
deepak
July 17, 2012
check

ert java values('1',' <h2>Java Interview Questions</h2> <br> With the notable increase in jobs that involve extensive use of Java it certainly is worth devoting an entire section to this programming language. Of course, this is not a complete and thorough guide to Java, so some basic knowledge of Java is assumed. Whatâ??s being presented here are some salient questions that cover a broad range of topics in Java. <br><br> Unless you are interviewing for a position that involves extensive use of Java, you generally wonâ??t be asked Java-related questions. But if you know that the position requires at least some Java skills, you will definitely want to read this section. <br> <br> <br><br><br>') ---------------------------------------------------------------------------------- insert java values(2,' <h2>In Java, how does System.out.println() work?</h2> <br> This question is an excellent example of how just some very basic knowledge of Java can lead you to the correct answer. Most interviewers would not expect you to know the answer to do this right away â?? but would like to see how you think and arrive at an answer.Marcus Aurelius once said: "Of each particular thing ask: what is it in itself? What is its nature?". This problem is an excellent example of how that sort of thinking can help one arrive at an answer with only some basic Java knowledge. <br><br> Unless you are iWith that in mind, letâ??s break this down, starting with the dot operator. In Java, the dot operator can only be used to call methods and variables so we know that â??outâ?? must be either a method or a variable. Now, how do we categorize â??outâ??? Since println() is clearly a method, and its called using â??outâ??, then we know that â??outâ?? can not possibly be a method because it doesnâ??t make sense to have one method invoke another method with the dot operator in Java. This means â??outâ?? must be a variable. <br> <br>
krish
July 23, 2012
hh

thanku
Vipin kumar
September 5, 2012
java

vipin
haranadh
September 25, 2012
GoodEvening

howmuch time is set to HttpSession Object?
raju
March 5, 2014
how to run servelet program

plz help me
DMCA.com