예제 #1
0
 @Override
 protected void doGet(HttpServletRequest req, HttpServletResponse resp)
     throws ServletException, IOException {
   req.setAttribute("deposits", DEPOSIT_CACHE.values());
   RequestDispatcher dispatcher = req.getRequestDispatcher("/views/deposit/DepositView.jsp");
   dispatcher.forward(req, resp);
 }
예제 #2
0
/** Created by alekseysamoylov on 2/16/16. */
public class DepositViewServlet extends HttpServlet {

  private static final DepositData DEPOSIT_CACHE = DepositData.getInstance();

  @Override
  protected void doGet(HttpServletRequest req, HttpServletResponse resp)
      throws ServletException, IOException {
    req.setAttribute("deposits", DEPOSIT_CACHE.values());
    RequestDispatcher dispatcher = req.getRequestDispatcher("/views/deposit/DepositView.jsp");
    dispatcher.forward(req, resp);
  }
}