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