previous
|
start
|
next
Servlets
To send an HTML document back to the browser
Set the content type of the response to HTML
response.setContentType("text/html");
Get a print writer to collect the document to be sent
PrintWriter out = response.getWriter();
Print the HTML document to the print writer
Close the print writer
previous
|
start
|
next