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