bonjour

je sais que ce probleme a été traité dans ce forum,justement j'ai vu les discussions et j'ai appliqué ce qui a été dit mais toujours j'ai un problème

voila ce que j'ai fait :

voila ma 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
18
19
20
<html:form action="/combo1.do" method="post">
  <table border="0">
   <tr>
   <td>client:</td>
   <td> <html:select property="client">
  <html:options property="listclient"/>
   </html:select>
    </td>
    </tr>
 
   <tr>
   <td>article:</td>
  <td>
   <html:select  property="article">
   <html:options property ="listarticle"></html:options>
   </html:select> </td>
   </tr>
  <html:submit>tester</html:submit>
    </html:form>
   </body>

la class du form est la suivante:

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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
public class Combo2Form extends ActionForm {
	/*
	 * Generated fields
	 */
 
	/** article property */
	private String article;
 
	/** client property */
	private String client;
 
	private List listclient;
	private List listarticle;
 
	/*
	 * Generated Methods
	 */
 
	/** 
         * Method validate
         * @param mapping
         * @param request
         * @return ActionErrors
         */
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
		// TODO Auto-generated method stub
		return null;
	}
 
	/** 
         * Method reset
         * @param mapping
         * @param request
         */
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		// TODO Auto-generated method stub
	}
 
	/** 
         * Returns the article.
         * @return String
         */
	public String getArticle() {
		return article;
	}
 
	/** 
         * Set the article.
         * @param article The article to set
         */
	public void setArticle(String article) {
		this.article = article;
	}
 
	/** 
         * Returns the client.
         * @return String
         */
	public String getClient() {
		return client;
	}
 
	/** 
         * Set the client.
         * @param client The client to set
         */
	public void setClient(String client) {
		this.client = client;
	}
 
	public List getListclient() {
		return listclient;
	}	
 
	public void setListclient(List listclient) {
		this.listclient = listclient;
	}
 
	public List getListarticle() {
		return listclient;
	}
et j'ai crée une action et je lui ai associé ce form
dans cette action je vais recupére la list du combo depuis ma base et la mettre ds le form
voici une partie de son code:

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
23
public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response) {
 
		Combo2Form combo2Form = (Combo2Form) form;
 
 try {
 
	    	st=con.createStatement();
	    	rs=st.executeQuery("select cli_nom from client");
 
	    	while (rs.next())
	    	{
	    		client=rs.getString(1).trim();
	    		System.out.println("client");
	    		listclient.add(client);
 
	    }
 
	    	combo2Form.setListclient(listclient);
	    	System.out.println(listclient);
                         combo2Form.setListarticle(listarticle);
 
return mapping.findForward("combo");
et quand je demande l'url de l'action voici l'erreur qui s'affiche
org.apache.jasper.JasperException: Property listclient returned a null value
svp aidez moi je n'ai pas trouvé d'issue et pourtant j'ai appliqué ce que a été dit

merci