import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class HTMLViewGenerator2 extends HttpServlet { public void init(ServletConfig config) throws ServletException { super.init(config); System.out.println("In the init() method of HTMLViewGenerator"); } public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { performTask(req, res, "POST", "HTMLViewHandler2"); } public void performTask(HttpServletRequest req, HttpServletResponse res, String method, String url) throws ServletException, IOException { res.setContentType("text/html"); PrintWriter out = res.getWriter(); out.println("