Servlet files

Servlets are Java classes that create HTML pages with dynamic content and respond to requests from client applications that are implemented as HTML forms. Servlets also allow you to execute business logic from a Web browser or any other client application that connects using the Hypertext Transfer Protocol (HTTP). See Chapter 2, “Creating Java Servlets,” in the EAServer Web Application Programmer’s Guide.

All servlets are part of a Web application.Web clients invoke a servlet by prepending the Web application’s context path to an alias that is mapped to the servlet. For example, the following URL invokes a servlet mapped to the alias “Account” in the application with the context path “Finance”:

http://myhost/Finance/Account?type=add