1063: Highlights
- A servlet is a program that runs on a remote computer when activated by
a browser click on a link or form element.
- Servlet servers locate servlets by way of a
servlets.properties file.
- If you want to implement a servlet, then define a subclass of the
HttpServlet class with a doGet method. You can define the
doGet method to do any of the following:
- Analyze forms.
- Write information to a local file.
- Prepare HTML text to be returned to the servlet-initiating browser.
If you want a servlet to store information on a client computer, then
have the servlet create and return a cookie.