PropertyNotFoundException error:(
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Sunday, December 31, 2006 04:01 AM

Hello, I'm beginner.Let me explain what I have done. I have written a bean: ----------------------------------------------------------- package project1; public class LoginInfo { private String uname; public String getUname() { return uname; } public void setUname(String uname) { this.uname = uname; } public String commandButton_action() { return "success"; } } ----------------------------------------------------------- and the faces-config.xml is: /untitled1.jsp success /untitled2.jsp    More>>

Hello,


I'm beginner.Let me explain what I have done. I have written a bean:
-----------------------------------------------------------

			
package project1;

public class LoginInfo {
private String uname;

public String getUname() {
return uname;
}

public void setUname(String uname) {
this.uname = uname;
}

public String commandButton_action() {
return "success";
}
}


-----------------------------------------------------------


and the faces-config.xml is:

			


/untitled1.jsp

success
/untitled2.jsp



loginBean
project1.LoginInfo
session



----------------------------------------------------------

In untitled1.jsp, I have a inputText and its value is:
			
#{sessionScope.loginBean.uname}


Namely, I want the setter method of the bean to run when I post the form but I get the error:
javax.faces.el.PropertyNotFoundException: Error testing property 'uname' in bean of type null



What is my problem?

   <<Less
About | Sitemap | Contact