Rendering HTML with a servlet...
// Get the output stream and set the content type
PrintWriter out = response.getWriter();
response.setContentType("text/html");
out.println("<TITLE>Home Banking System</TITLE>");
out.println("<BODY BGCOLOR=goldenrod>");
out.println("<h2>Your account balance is: " +
formattedBalance + "</h2>");
- Having gathered that data, the servlet writes HTML to the client