Servlet: What it does?
User accesses the HTTP server from HTML browser, providing in URL:
- (1) locator of the servlet; (2) locator of a TDL template; (3) user data
The HTTP server passes call to servlet defined by (1).
Based on template locator (2), servlet reads template from an HTTP server
- Servlet interprets contents of the template tag by tag, meanwhile contacting local database management system and other HTTP servers for data needed to complete the operation
- The data is formatted according to the template and the parameters, and send back to user as a standard HTML file.