Supporting thin clients - Servlets
Servlets
- ‘server side applets’(?)
- similar life cycle to applets, multi-threaded, parameters
- Java version of CGI scripts
- more efficient - integrated with the server
- pure Java architecture - portable
Servlets respond to forms
- are ‘POSTed’ or ‘GET’ the content of the form
- read the parameters from the ‘request’ object
- process the data - can use sessions, cookies etc.
Servlets write dynamic content
- write HTML pages (MIME types) to the ‘response’ object