Servlets CS-328 Dick Steflik
What is a servlet • A Java application run on a thread of the webserver in response to an HTTP GET or POST request. • The servlet is used to generate Dynamic content to return to the requesting browser – may be HTML – may be XML – may be POT
The Servlet Model
HTTP Get or Post BROWSER
Java Enabled Webserver
HTML
J V
Servlet
M
Data Base
Invoking a servlet • <servlet> tag – webserver must be enabled for server side embeds
• “action” attribute of