Home
Examples
Tutorials
Errata
/ch8/services/google/Controller.java
/ch8/services/google/Controller.java
package ch8.services.google; 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 { @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { //ControllerEdit.jsp is only page that a GET request will see. ControllerHelper helper = new ControllerHelper(this, request, response); helper.doGet(); } @Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { //ControllerEdit.jsp is only page that a GET request will see. ControllerHelper helper = new ControllerHelper(this, request, response); helper.doPost(); } }
Contact the author