Architectural Roles for Servlets
Middle-tier process:
- Connection management to multiple clients
- Transaction management
- Business Rule Enforcement
- Supporting different types of clients, such as HTML and Java applet
Proxy server for applets to connect to other hosts.
Protocol support other protocols: SMTP, POP, FTP, . . .
Some servers allow the <servlet> tag in HTML, and the server will call the servlet to insert text into the outgoing HTML stream (server side includes - SSI).
Some servers support Java Server Pages (JSP) which allow servlet scripts to be embedded into HTML pages and executed when the page is requested.