@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);
 }
/** 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);
  }
}