src/main/java/org/openimmunizationsoftware/pt/servlet/BillBudgetServlet.java
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
    AppReq appReq = new AppReq(request, response);
    try {
      WebUser webUser = appReq.getWebUser();
      if (appReq.isLoggedOut() || appReq.isDependentWebUser()) {
        forwardToHome(request, response);
        return;
      }
      appReq.setTitle("Track");
      printHtmlHead(appReq);
      Session dataSession = appReq.getDataSession();
      BillBudget billBudget = (BillBudget) dataSession.get(BillBudget.class,
          Integer.parseInt(request.getParameter("billBudgetId")));
      Date today = new Date();
      PrintWriter out = appReq.getOut();
      generateReport(out, dataSession, billBudget, today, webUser);
      printHtmlFoot(appReq);
    } finally {
      appReq.close();
    }
  }
/**
   * Processes requests for both HTTP <code>GET</code> and <code>POST</code>
   * methods.
   * 
   * @param request
   *          servlet request
   * @param response
   *          servlet response
   * @throws ServletException
   *           if a servlet-specific error occurs
   * @throws IOException
   *           if an I/O error occurs
   */
Processes requests for both HTTP GET and POST
methods.

@param request
servlet request
@param response
servlet response
@throws ServletException
if a servlet-specific error occurs
@throws IOException
if an I/O error occurs
Processes requests for both HTTP GET and POST methods . @param request servlet request @param response servlet response @throws ServletException if a servlet - specific error occurs @throws IOException if an I / O error occurs
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
    AppReq appReq = new AppReq(request, response);
    try {
      WebUser webUser = appReq.getWebUser();
      if (appReq.isLoggedOut() || appReq.isDependentWebUser()) {
        forwardToHome(request, response);
        return;
      }
      appReq.setTitle("Track");
      printHtmlHead(appReq);
      Session dataSession = appReq.getDataSession();
      BillBudget billBudget = (BillBudget) dataSession.get(BillBudget.class,
          Integer.parseInt(request.getParameter("billBudgetId")));
      Date today = new Date();
      PrintWriter out = appReq.getOut();
      generateReport(out, dataSession, billBudget, today, webUser);
      printHtmlFoot(appReq);
    } finally {
      appReq.close();
    }
  }
protected void processRequest ( HttpServletRequest request , HttpServletResponse response ) throws ServletException , IOException { AppReq appReq = new AppReq ( request , response ) ; try { WebUser webUser = appReq . getWebUser ( ) ; if ( appReq . isLoggedOut ( ) || appReq . isDependentWebUser ( ) ) { forwardToHome ( request , response ) ; return ; } appReq . setTitle ( "Track" ) ; printHtmlHead ( appReq ) ; Session dataSession = appReq . getDataSession ( ) ; BillBudget billBudget = ( BillBudget ) dataSession . get ( BillBudget . class , Integer . parseInt ( request . getParameter ( "billBudgetId" ) ) ) ; Date today = new Date ( ) ; PrintWriter out = appReq . getOut ( ) ; generateReport ( out , dataSession , billBudget , today , webUser ) ; printHtmlFoot ( appReq ) ; } finally { appReq . close ( ) ; } }
Processes requests for both HTTP <code>GET</code> and <code>POST</code>
 methods.
Processes requests for both HTTP <code > GET< / code > and <code > POST< / code > methods .