Examples of ChercherForm


Examples of fr.utbm.in56.annonces.struts.form.ChercherForm

  @Override
  public ActionForward execute(ActionMapping mapping, ActionForm form,
      HttpServletRequest request, HttpServletResponse response)
      throws Exception {
   
    ChercherForm chercherForm = (ChercherForm) form;
       
        HttpSession session = request.getSession();
        AnnonceDao annoncesDao = new AnnonceDao();
        DepartementDao departementDao = new DepartementDao();
        CategorieDao categorieDao = new CategorieDao();
       
        Departement departement = departementDao.getById(chercherForm.getDepartement());
        Categorie categorie = categorieDao.getById(chercherForm.getCategorie());
       
        session.setAttribute("annonces", annoncesDao.getAnnonces(
                chercherForm.getPrixMin(),
                chercherForm.getPrixMax(),
                chercherForm.getRecherche(),
                chercherForm.isOffre(),
                departement,
                categorie));
   
    return mapping.findForward("default");
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.