Bonjour

Je travaille avec hibernate et Spring MVC.
je voudrais faire la recherche d'un employé et afficher sa liste de congés dans ma page jsp.

mais je n'ai pas pu récupérer l'id de ma page jsp.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
public ModelAndView FindVacations(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
 
		ModelMap modelMap = new ModelMap();
 
		modelMap.addAttribute("vacationList", vacationDAO
				.findVacationByIdEmp(Integer.parseInt(request
						.getParameter("id"))));
 
		modelMap.addAttribute("vacationtypeList", vacationtypeDAO
				.findallVacationtype());
		modelMap.addAttribute("employeList", vacationDAO.findallEmploye());
 
		return new ModelAndView("FindVacations", modelMap);
	}
}
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
@SuppressWarnings("unchecked")
	public List<Vacation> findVacationByIdEmp(Integer id) {
 
		List<Vacation> list = hibernateTemplate
				.find("from Vacation vtn  where vtn.employes.id=" + id);
		System.out.println(list);
		return list;
	}
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<form:form  action="FindVacations.htm" commandName="vacation" id="formConge" method="post">
 
		<tr align="center"  >
			<td >
		Employee 
		</td>
		<td><form:select path="employes" id="id"    >
		<form:option value="0" label="Select" />
 
 
		   <form:options  items="${employeList}" itemLabel="id" itemValue="id"  />
		</form:select>
		<br></br>
		 <input type="submit" value="Submit" onclick="return valider()"> 
		</td>
 
	  </tr>
merci de m'aider SVP