Home
Examples
Tutorials
Errata
/ch7/accountRemove/Controller.java
/ch7/accountRemove/Controller.java
package ch7.accountRemove; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class Controller extends HttpServlet { public void init() { boolean create = Boolean.parseBoolean(getInitParameter("create")); ControllerHelper.initHibernate(create); } protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { ControllerHelper helper = new ControllerHelper(this, request, response); helper.doGet(); } protected void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { ControllerHelper helper = new ControllerHelper(this, request, response); helper.doPost(); } }
Contact the author