Many consultants prize Java solutions when connecting legacy systems to the Web. This is because the Java language seems especially suited for creating networked applications that transfer data from older systems. A Java servlet is any Java-based application that operates on the server side. Although Java servlets have many uses outside of the legacy connectivity sphere, they are common components.
A servlet is a Java programming language class used to extend the capabilities of servers that can be accessed by a host application via a request-response programming model. Although servlets can respond to any type of request, they are commonly used to extend the applications hosted by Web servers. Thus, it can be thought of as a Java Applet that runs on a server instead of a browser.
The servlet technology is the foundation of web application development using the Java programming language. It is an important Java technology since it is the underlying technology for web application development and JavaServer Pages (JSP). Therefore, understanding the servlet technology and its architecture is important if you want to be a servlet developer.
Even if you plan to develop your Java web application using JSP pages alone, understanding the servlet technology helps you build a more efficient and effective JSP application. The servlet technology will enable you to build and run a java applications on the server.
In particular, the main elements to consider:
- The benefits of servlets
- Servlet application architecture
- How a servlet works
Tomcat 8.0 and higher is the open source servlet container that enables you to run JSP and Servlets for your application.
More on this topic can be found at the following website.