voila, j'ai un ejb qui me fournit une arraylist, et je veux que les elements de cette arrayliste s'affiche dans une liste deroulante sauf que ca me renvoit cette exception :
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
18
19
20
21
22
 
javax.servlet.jsp.JspException: Cannot find bean under name org.apache.struts.taglib.html.BEAN
    org.apache.struts.taglib.html.SelectTag.calculateMatchValues(SelectTag.java:240)
    org.apache.struts.taglib.html.SelectTag.doStartTag(SelectTag.java:200)
    org.apache.jsp.candidat.inscCand_jsp._jspx_meth_html_select_0(inscCand_jsp.java:127)
    org.apache.jsp.candidat.inscCand_jsp._jspx_meth_html_html_0(inscCand_jsp.java:101)
    org.apache.jsp.candidat.inscCand_jsp._jspService(inscCand_jsp.java:69)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
    org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
    org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)
    org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318)
    org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
    org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
    org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
voici mon struts config :
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
18
19
20
21
22
 
    <form-beans>
        <form-bean
            name="inscCandForm"
            type="m.candidat.actionform.TestForm"> 
        </form-bean>
 
    </form-beans>
 
    <action-mappings>
 
        <action
            path="/ajoutCandidat"
            type="m.candidat.action.InscCandidatAction"
            name="inscCandForm"
            scope="request"
            attribute="testForm"
            input="/candidat/accueilCandidat.jsp">
                <forward name="success" path="/candidat/inscCand.jsp"></forward>
        </action>
 
    </action-mappings>
voici ma classe Action :
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
18
19
20
 
public class InscCandidatAction extends Action {    
 
    public ActionForward execute(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response) throws Exception {
        commonSessionHome = getHome();
        myCSession = commonSessionHome.create();
        ArrayList liste = myCSession.getAllCivilite();
        ArrayList listeCivi = new ArrayList();
 
        for(int i=0; i<liste.size(); i++) {
            CiviliteData cd = (CiviliteData) liste.get(i);
            listeCivi.add(new LabelValueBean(cd.getId_civilite(),cd.getDetail_civilite()));
        }
        request.setAttribute("civilite",listeCivi);
        return mapping.findForward("success");        
    }
 
        ...
}
et voici mes pages jsp :

la jsp : accueilCandidat.jsp
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
 
<%@ taglib uri="/tags/struts-html" prefix="html"%>
 
<html:html>
<head>
<title>Page Affiche</title>
</head>
<body bgcolor="white">
<html:link action="/ajoutCandidat.do">Ouvrir un compte</html:link>
</body>
</html:html>
la jsp : inscCand.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
17
 
<%@ taglib uri="/tags/struts-bean" prefix="bean"%>
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri="/tags/struts-logic" prefix="logic"%>
 
<html:html>
<head>
<title>Page Affiche</title>
</head>
<body bgcolor="white">
    <!--  bean:define id="civi" scope="request" property="listeCivi"/-->
    <html:select property="listeCivilite">
        <html:optionsCollection name="testForm"
            property="listeCivi" value="value" label="label"/>
    </html:select>
</body>
</html:html>
si quelqu'un sait d'ou vient le probleme...

Merci