Java Servlet Concept

Read Complete Research Material



Java Servlet Concept

Java Servlet Concept

Java Servlet

A Servlet is a class of java programming language that is used to broaden the server's capabilities. Even though servlets might respond to any king of request, these servlets are mainly used to broaden the applications that are hosted with the help of web servers, therefore they can be considered as Java Applets, that do not run in web browsers, however these run on servers. These types of servlets are similar to web content technologies like ASP.NET and PHP. A servlet is server-side, Java based web technology. In terms of technology, a servlet is class of Java, in Java EE, that matches to the Java Servlet API; this is the protocol with the help of which Java class can respond to client-side requests. Servlets can communicate in any client-server protocol; however servlets are mainly used with the protocol of HTTP. For HTTP Servlet, servlet is often utilized as short hand (Hanna, 2000). Therefore, a software developer can utilize a servlet in order to add dynamic content to web server, by making use of the Java platform. This created content is mainly HTML; however it can be in other form of data like XML. In session variables for different transactions of server, servelts are capable of maintaining states by making use of URL rewriting or HTTP cookies.

Use of Servlet

Java servlets are powerful and efficient solution for developing dynamic Web content. In the last few years, Java Servlets have become the basic building blocks for ordinary server-side of Java. The power of servlet mainly comes from the interaction with the container of servlet, and from the utilization of Java in the form of platform. The Java platform gives a developer of servelt the robust object oriented programming, API, neutrality of platform, strict forms, collection of ...