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("HTMLFormGenerator"); out.println("

Select the Fields to View


"); out.println("
"); out.println("

Tell us What you like to see from the database:

"); out.println("Matriculation Nr: "); out.println("
"); out.println("
First name
"); out.println("
City
"); out.println("
Zip
"); out.println("
Country
"); out.println("
Email
"); out.println("

"); out.println("
"); out.println(""); out.close(); System.out.println("In the doGet method"); } }