Documentation
Examples
Tutorials
JAR files
Leaks
Errata
/ch7/accountRemove/ControllerHelper.java
/ch7/accountRemove/ControllerHelper.java
package ch7.accountRemove; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import shared.ButtonMethod; import shared.HibernateHelper; public class ControllerHelper extends ch7.accountLogin.ControllerHelper { public ControllerHelper(HttpServletRequest request, HttpServletResponse response) { super(request, response); } @Override public String jspLocation(String page) { return "/WEB-INF/classes/ch7/accountRemove/" + page; } @ButtonMethod(buttonName = "removeButton") public String removeMethod() { HibernateHelper.removeDB(data); data = new ch7.accountLogin.RequestDataAccount(); return jspLocation("Login.jsp"); } @Override protected void doGet() throws ServletException, java.io.IOException { super.doGet(); } @Override protected void doPost() throws ServletException, java.io.IOException { super.doPost(); } }
Contact the author