 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
§ |
Import the
Servlet API:
|
|
import javax.servlet.*;
|
|
import
javax.servlet.http.*;
|
|
|
§ |
Extend the HTTPServlet class
|
|
|
|
§ |
Full servlet API
available at:
|
|
|
|
http://www.java.sun.com/products/servlet/2.2/j
|
|
avadoc/index.html
|
|
|
§ |
You need to
overrride at least one of the
|
|
|
request handlers!
|
|
|
§ |
Get an output
stream to send the response
|
|
|
back to the
client
|
|
|
|
§ |
All output is
channeled to the browser.
|
|