Bonjour ,

je travaille sur une application en utilisant struts,
ce que je veux faire c'est

1- récupérer des données de ma table pour les mettre dans une liste déroulante dans un formulaire (fiche.jsp)

2- puis choisir de cette liste une entité et remplir les autres champs pour ajouter une fiche dans la table fiche.

voici le code de ma page.

fiche.jsp

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>

<html:form action="gfiche.do">
Sujet: <html:text property="sujet" value=""></html:text>
Auteur: <html:text property="auteur" value=""></html:text>
E-mail: <html:text property="mail" value=""></html:text>
Groupe : <html:select property="groupe">
<html:option value="ESF">ESF </html:option>
<html:option value="ECD">ECD</html:option>
<html:option value="ECE">ECE</html:option>
</html:select>
Langue: <html:text property="langue" value=""></html:text>
Réference Externe: <html:text property="reference_externe" value=""></html:text>
Description: <html:textarea property="description" value=""></html:textarea>
Corps: <html:textarea property="corps" value=""></html:textarea>
Mot cle: <html:text property="mot_cle" value=""></html:text>
Etat: <html:select property="etat">
<html:option value="Sauvee">Sauvée </html:option>
<html:option value="En cours">En cours</html:option>
<html:option value="Validee">Validée</html:option>
</html:select>
Commentaires:
<html:textarea property="commentaires" value=""></html:textarea>
Opinion: <html:select property="opinion">
<html:option value="Satisfaisante">Satisfaisante</html:option>
<html:option value="Moyenne">Moyenne</html:option>
<html:option value="Faible">Faible</html:option>
</html:select>

<html:select property="idprojet">
<html:optionsCollection property="Listprojet" value="idprojet" label="Libelle_projet"/>
</html:select>
<html:select property="idcategorie">
<html:optionsCollection property="Listcategorie" value="idcategorie" label="titre"/>
</html:select>
<html:select property="iddocument">
<html:optionsCollection property="Listdocument" value="iddocument" label="Libelle_categorie"/>
</html:select>



<html:submit value="Ajouter" property="action"></html:submit>
</html:form>
<html:errors/>

Ficheform (mon bean)

/* Date datesys = new java.sql.Date(System.currentTimeMillis()); */

package presentation;

import java.sql.Date;
import java.util.List;
import java.util.Vector;

import javax.servlet.http.HttpServletRequest;

import metier.GC_Categorie;
import metier.GC_Document;
import metier.GC_Projet;
import metier.*;

import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

public class FicheForm extends ActionForm{


private String sujet;
private String description;
private String corps;
private String langue;
private String groupe;
private String reference_externe;
private String auteur ;
private String mail ;
private String mot_cle;
private Date date_modification;
private Date date_creation ;
private String etat ;
private String commentaires ;
private String opinion;
private long idprojet;
private long idcategorie;
private long iddocument;
List<GC_Document> Listdocument = new Vector<GC_Document>();
List<GC_Projet> Listprojet = new Vector<GC_Projet>();
List<GC_Categorie> Listcategorie= new Vector<GC_Categorie>();

private String action="";
//private List documents = new Vector<Fiche>();



/* Getters and Setters */

public String getSujet() {
return sujet;
}
public void setSujet(String sujet) {
this.sujet = sujet;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getCorps() {
return corps;
}
public void setCorps(String corps) {
this.corps = corps;
}
public String getLangue() {
return langue;
}
public void setLangue(String langue) {
this.langue = langue;
}
public String getGroupe() {
return groupe;
}
public void setGroupe(String groupe) {
this.groupe = groupe;
}
public String getReference_externe() {
return reference_externe;
}
public void setReference_externe(String reference_externe) {
this.reference_externe = reference_externe;
}
public String getAuteur() {
return auteur;
}
public void setAuteur(String auteur) {
this.auteur = auteur;
}
public String getMail() {
return mail;
}
public void setMail(String mail) {
this.mail = mail;
}
public String getMot_cle() {
return mot_cle;
}
public void setMot_cle(String mot_cle) {
this.mot_cle = mot_cle;
}
public Date getDate_modification() {
return date_modification;
}
public void setDate_modification(Date date_modification) {
this.date_modification = date_modification;
}
public Date getDate_creation() {
return date_creation;
}
public void setDate_creation(Date date_creation) {
this.date_creation = date_creation;
}
public String getEtat() {
return etat;
}
public void setEtat(String etat) {
this.etat = etat;
}
public String getCommentaires() {
return commentaires;
}
public void setCommentaires(String commentaires) {
this.commentaires = commentaires;
}
public String getOpinion() {
return opinion;
}
public void setOpinion(String opinion) {
this.opinion = opinion;
}
public long getIdprojet() {
return idprojet;
}
public void setIdprojet(long idprojet) {
this.idprojet = idprojet;
}
public long getIdcategorie() {
return idcategorie;
}
public void setIdcategorie(long idcategorie) {
this.idcategorie = idcategorie;
}
public long getIddocument() {
return iddocument;
}
public void setIddocument(long iddocument) {
this.iddocument = iddocument;
}
public String getAction() {
return action;
}
public void setAction(String action) {
this.action = action;
}

public List getListdocument() {
return Listdocument;
}
public void setListdocument(List listdocument) {
Listdocument = listdocument;
}
public List getListprojet() {
return Listprojet;
}
public void setListprojet(List listprojet) {
Listprojet = listprojet;
}
public List getListcategorie() {
return Listcategorie;
}
public void setListcategorie(List listcategorie) {
Listcategorie = listcategorie;
}

@Override
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
ActionErrors errors = new ActionErrors();//collection qui contient les erreurs
if(sujet.length()==0){
errors.add("sujetnull", new ActionError("error.sujet.vide"));

}
return errors;
}
@Override
public void reset(ActionMapping mapping, HttpServletRequest request) {
this.sujet="";
}


}
FicheAction

package presentation;

import java.sql.Date;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import presentation.FicheForm;
import metier.*;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;
import org.apache.struts.action.ActionMessages;

public class FicheAction extends Action{



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

FicheForm fform=(FicheForm)form;
Operation o = new Operation();


ActionMessages errors = form.validate(mapping,request);
if ( !errors.isEmpty() )
{
this.saveErrors(request,errors);
}else {

fform.setListcategorie(o.getToutcategorie());
fform.setListdocument(o.getToutdocument()) ;
fform.setListprojet(o.getToutprojet());

System.out.println(fform.getListprojet().size());

o.addFiche(fform.getSujet(), fform.getDescription(),
fform.getCorps(),fform.getLangue(), fform.getGroupe(),
fform.getReference_externe(),fform.getAuteur(),fform.getMail(),
fform.getMot_cle(),fform.getDate_modification(), fform.getDate_creation(),
fform.getEtat(),fform.getCommentaires(), fform.getOpinion(),
fform.getIdprojet(), fform.getIddocument(),fform.getIdcategorie());
}



return mapping.findForward("VueFiche");
}
}

voici l'erreur qu'il me donne


GRAVE: "Servlet.service()" pour la servlet jsp a lancé une exception
javax.servlet.jsp.JspException: No getter method for property Listprojet of bean org.apache.struts.taglib.html.BEAN
at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:973)