Package org.springframework.ui

Examples of org.springframework.ui.ModelMap


  }
 
  public ModelAndView autoComplete(HttpServletRequest request, HttpServletResponse response)throws Exception
  {
    String text=request.getParameter("queryString");
    ModelMap modelMap = new ModelMap();
    modelMap.addAttribute("productList",productDAO.autoCom(text));
    modelMap.addAttribute("product", new Product());
    return new ModelAndView("autoCompleteProducts",modelMap);
   
  }
View Full Code Here


    salesDAO.updateSalesEntry(sales);
    return new ModelAndView("redirect:listBill.htm");
  }
  public ModelAndView viewPrevBill(HttpServletRequest request, HttpServletResponse response)throws Exception
  {
    ModelMap modelMap = new ModelMap();
    if(request.getParameter("billNo") !=null)
    {
      long billId=Long.parseLong(request.getParameter("billNo"));
      System.out.println(billId);
      modelMap.addAttribute("items", salesDAO.selectByBillId(billId));
    }
   
    modelMap.addAttribute("bill", new Sales());
    return new ModelAndView("prevEntry",modelMap);
  }
View Full Code Here

     
        bill1=billDAO.selectBill(billId);
        bill1.setAmount(amt);
        billDAO.updateBill(bill1);
      }
    ModelMap modelMap = new ModelMap();
    modelMap.addAttribute("items", partialPaymentDAO.listAll());
    modelMap.addAttribute("partialPay", new PartialPayment());
    return new ModelAndView("partialPayment",modelMap);
  }
View Full Code Here

    long studentId;
    if(request.getParameter("studentId")==null)
      studentId=0;
    else
      studentId=Long.parseLong(request.getParameter("studentId"));
    ModelMap modelMap = new ModelMap();
    modelMap.addAttribute("items", partialPaymentDAO.selectByStudent(studentId));
    modelMap.addAttribute("partialPay", new PartialPayment());
    return new ModelAndView("searchPartialPay",modelMap);
   
  }
View Full Code Here

   
  }
  public ModelAndView printBill(HttpServletRequest request, HttpServletResponse response)throws Exception
  {
    long id=Long.parseLong(request.getParameter("billNo"));
    ModelMap modelMap = new ModelMap();
    modelMap.addAttribute("salesList", salesDAO.selectByBillId(id));
    modelMap.addAttribute("bill", billDAO.selectBill(id));
 
    return new ModelAndView("printBill", modelMap);
  }
View Full Code Here

    this.studentDAO = studentDAO;
  }

  public ModelAndView addStudentPage(HttpServletRequest request, HttpServletResponse response)throws Exception
  {
    ModelMap modelMap = new ModelMap();
    modelMap.addAttribute("studentList",studentDAO.listStudent());
    return new ModelAndView("studentEntry",modelMap);
  }
View Full Code Here

    return new ModelAndView("redirect:list.htm");
  }
 
  public ModelAndView list(HttpServletRequest request, HttpServletResponse response)throws Exception
  {
    ModelMap modelMap = new ModelMap();
    modelMap.addAttribute("productList", productDAO.listProduct());
    modelMap.addAttribute("product", new Product());
    return new ModelAndView("addStock",modelMap);
  }
View Full Code Here

    productDAO.updateProduct(product);
  }
  public ModelAndView updateStockPage(HttpServletRequest request, HttpServletResponse response)throws Exception
  {
    int id=Integer.parseInt(request.getParameter("id"));
    ModelMap modelMap = new ModelMap();
    modelMap.addAttribute("productList", productDAO.selectById(id));
    modelMap.addAttribute("product", new Product());
    return new ModelAndView("updateStock",modelMap);
  }
View Full Code Here

    return new ModelAndView("redirect:list.htm");
  }
 
  public ModelAndView stockStatus(HttpServletRequest request, HttpServletResponse response)throws Exception
  {
    ModelMap modelMap = new ModelMap();
    modelMap.addAttribute("productList", productDAO.listProduct());
    modelMap.addAttribute("product", new Product());
    return new ModelAndView("stockStatus",modelMap);
  }
View Full Code Here

    modelMap.addAttribute("product", new Product());
    return new ModelAndView("stockStatus",modelMap);
  }
  public ModelAndView setSellingPricePage(HttpServletRequest request, HttpServletResponse response)throws Exception
  {
    ModelMap modelMap = new ModelMap();
    modelMap.addAttribute("productList", productDAO.listProduct());
    modelMap.addAttribute("product", new Product());
    return new ModelAndView("setSellingPrice",modelMap);
  }
View Full Code Here

TOP

Related Classes of org.springframework.ui.ModelMap

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.