Package com.chandana.dev.manager

Examples of com.chandana.dev.manager.CustomerManager


  public ActionForward execute(ActionMapping mapping, ActionForm form,
      HttpServletRequest request, HttpServletResponse response)
      throws Exception {
 

    CustomerManager customerBo = (CustomerManager) getWebApplicationContext()
        .getBean("customerBo");

    DynaActionForm dynaCustomerListForm = (DynaActionForm) form;

    List<Customer> list = customerBo.findAllCustomer();

    dynaCustomerListForm.set("customerList", list);
    request.setAttribute("customerList", list);

    return mapping.findForward("success");
View Full Code Here


      HttpServletRequest request, HttpServletResponse response)
      throws Exception {

   

    CustomerManager customerBo = (CustomerManager) getWebApplicationContext().getBean("customerBo");

    List<Customer> list = customerBo.searchCustomer(request.getParameter("name"));   

    request.setAttribute("customerList", list);
    request.getSession().setAttribute("customerList", list);
    DynaActionForm dynaCustomerListForm = (DynaActionForm) form;
    dynaCustomerListForm.set("customerList", list);
View Full Code Here

public class AddCustomerAction extends ActionSupport {

  public ActionForward execute(ActionMapping mapping, ActionForm form,
      HttpServletRequest request, HttpServletResponse response)
      throws Exception {   
    CustomerManager customerBo = (CustomerManager) getWebApplicationContext()  .getBean("customerBo");
    CustomerForm customerForm = (CustomerForm) form;
    Customer customer = new Customer();
    BeanUtils.copyProperties(customer, customerForm);
    customerBo.addCustomer(customer);
    return mapping.findForward("success");

  }
View Full Code Here

TOP

Related Classes of com.chandana.dev.manager.CustomerManager

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.