hello, I need help I am using struts and hibernate I got the following error
cause mère
org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: No getter method for property: "formations.dateDebut" of bean: "cv"
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:491)
...
here are my resources
creer_cv.jsp_
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="html" uri="http://struts.apache.org/tags-html"%>
<%@taglib prefix="nested" uri="http://struts.apache.org/tags-nested" %>
<html>
<head>
<title>Insert title here</title>
</head>
<body>
<html:form action="/creer_cv2.do" method="post">
<table>
<tr><td>Titre CV: <html:text property="titreCv" name="cv" /></td></tr>
<tr><td><fieldset><legend>Formations:</legend>
<table><tr><td>Date Début</td><td>Date Fin</td><td>Ou à aujourdhui</td></tr>
<tr>
<td><html:text property="formations.dateDebut" name="cv" /></td>
<td><html:text property="formations.dateFin" name="cv" /></td>
</tr>
<tr><td><html:submit value="Valider" /> <html:link href="creer_cv.do" /></td></tr>
</table></fieldset></td>
</tr></table>
</html:form>
</body>
</html>
Cv.java_
package modeles_candidat;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import org.apache.struts.action.ActionForm;
import modeles_generale.Langue;
public class Cv exetends ActionForm {
private String titreCv;
private Set<Formation> formations = new HashSet<Formation>();
public Cv() {
// TODO Auto-generated constructor stub
}
public String getTitreCv() {
return titreCv;
}
public void setTitreCv(String titreCv) {
this.titreCv = titreCv;
}
public Set<Formation> getFormations() {
return formations;
}
public void setFormations(Set<Formation> formations) {
this.formations = formations;
}
}
Formation.java_
package modeles_candidat;
import java.util.Date;
import modeles_generale.NiveauFormation;
import modeles_generale.TypeFormation;
public class Formation implements java.io.Serializable {
private static final long serialVersionUID = 1L;
private String titreFormation;
private String dateDebut;
private Date dateFin;
private String descriptionFormation;
private String etablissement;
private String ville;
private String paye;
private Candidat candidat;
private TypeFormation typeFormation;
private NiveauFormation nvFormation;
public Formation() {
}
public Integer getIdFormation() {
return this.idFormation;
}
public void setIdFormation(Integer idFormation) {
this.idFormation = idFormation;
}
public String getTitreFormation() {
return this.titreFormation;
}
public void setTitreFormation(String titreFormation) {
this.titreFormation = titreFormation;
}
public String getDateDebut() {
return this.dateDebut;
}
public void setDateDebut(String dateDebut) {
this.dateDebut = dateDebut;
}
public Date getDateFin() {
return this.dateFin;
}
public void setDateFin(Date dateFin) {
this.dateFin = dateFin;
}
public String getDescriptionFormation() {
return this.descriptionFormation;
}
public void setDescriptionFormation(String descriptionFormation) {
this.descriptionFormation = descriptionFormation;
}
public String getEtablissement() {
return this.etablissement;
}
public void setEtablissement(String etablissement) {
this.etablissement = etablissement;
}
public String getVille() {
return this.ville;
}
public void setVille(String ville) {
this.ville = ville;
}
public String getPaye() {
return this.paye;
}
public void setPaye(String paye) {
this.paye = paye;
}
public void setCandidat(Candidat candidat) {
this.candidat = candidat;
}
public Candidat getCandidat() {
return candidat;
}
public void setTypeFormation(TypeFormation typeFormation) {
this.typeFormation = typeFormation;
}
public TypeFormation getTypeFormation() {
return typeFormation;
}
public void setNvFormation(NiveauFormation nvFormation) {
this.nvFormation = nvFormation;
}
public NiveauFormation getNvFormation() {
return nvFormation;
}
}
Thank you in advance