Bonjour j'essaye d'afficher une simple liste déroulante a partir des balises <html:select> et <html:options>
mais j'ai un message d'erreur, voici mon code

ma page JSP : search.jsp

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
<td>FACULTY :</td>
 
<td><bean:define id="fac" scope="request" name="ApplicationSearch" property="faculty"/>
 
<html:select property="facultyList">
 
<html:options collection="fac" property="value" labelProperty="label" />
 
</html:select></td>

ma classe du formulaire: ApplicationsearchForm.java

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
public class ApplicationSearchForm extends ActionForm {
 
private Integer studentId;
private String facultyList;
 
ArrayList faculty = new ArrayList();
 
public ArrayList getFaculty(){
	faculty.add(new LabelValueBean ("Science","Science") );
	faculty.add(new LabelValueBean ("Art","Art") );
	faculty.add(new LabelValueBean ("Langue","Langue") );
 return faculty;
}
 
public void setFaculty(ArrayList faculty) {
	this.faculty=faculty;
}
 
public String getFacultyList() {
	return facultyList;
}
public void setFacultyList(String facultyList) {
	this.facultyList=facultyList;
}
Mon message d'erreur :

Cannot find bean ApplicationSearch in scope request
est ce que j'ai oublié qq chose peut être dans struts-config ?? ya t'il plus simple a faire?