Servlets
Servlets are server-side Java™ programs that use the Oracle Java Servlet API and its associated classes and methods. These Java programs extend the functionality of a web server by generating dynamic content and responding to web client requests. When a browser sends a request to the server, the server can send the request information to a servlet, so that the servlet can construct the response that is sent back to the browser.
Just as applets run on a web browser and extend the browser's capabilities, servlets run on a Java-enabled web server, such as the WebSphere® Application Server and extend the server's capabilities. Because of their flexibility and scalability, servlets are commonly used to enable businesses to connect databases to the web.
- The business logic (content generation), which governs the relationship between input, processing, and output
- The presentation logic (content presentation, or graphic design rules), which determines how information is presented to the user
You can develop, debug, and deploy servlets using the workbench. You can set breakpoints within servlet objects, and step through code to make changes that are dynamically folded into the running servlet on a running server, without having to restart each time.