Bonjour à tous,
S il vous plait j’ai besoin d’aide urgent. Je comprends pas se qui se passe avec tomcat 6.

Je m explique :
Je teste mon premier project JSF en utilisant eclipse europa ,jsf1.2, et tomcat 6.
J ai une page jsp :MyFirstJSP.jsp dont le code est :
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
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
<f:view>
    <html>
        <head>
            <title>Insert title here</title>
        </head>
        <body>
 
             <h:form>
			<h:outputText value="Adresse Email " /><h:inputText/>
			<h:inputText value="#{regBean.email}"></h:inputText>
			<br>
			<h:outputText value="Mot de Passe " /><h:inputSecret/>
			<h:inputText value="#{regBean.passwd}"></h:inputText>
			<br>
			<h:commandButton value="Connecter" />
			<br>
			<h:messages />
			</h:form>
        </body>
    </html>
</f:view>
Et le bean associé a pour 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
24
 
package beanPackage;
 
public class RegistrationBean {
	private String email = "user@host";
	private String passwd = "";
 
	public String getMailAdress() {
		return email;
	}
 
	public void setMailAdress(String mailAdress) {
		this.email = mailAdress;
	}
 
	public String getPasswd() {
		return passwd;
	}
 
	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}
 
}
Enfin le mapping entre eux dans le fichier faces-config.xml :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
 
<managed-bean>
		<managed-bean-name>
		regBean</managed-bean-name>
		<managed-bean-class>
		beanPackage.RegistrationBean</managed-bean-class>
		<managed-bean-scope>
		request</managed-bean-scope>
	</managed-bean>
A l’éxecution j’obtiens le message suivant :javax.servlet.ServletException: /MyFirstJSP.jsp(17,3) '#{regBean.email}' Property 'email' not found on type beanPackage.RegistrationBean
javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)


Est-ce que quelqu’un peux m’expliquer ce qui se passe s’il vous plait.