Hai,
You can consider the javabean as a simple
java class.It can be described with the follwoing elements.
1. All the variables in this class are private variables.
2. All these variables have corresponding getter and setter methods.
3. It may also contain a equals(object obj) method.
Ex: (I have not compiled the class)
public class Login{
String userName;
String password;
public void setUserName(String userName){
this.userName = userName;
}
public String getUserName(){
return this.userName;
}
public void setPassword(String password){
this.password = password;
}
public String getPassword(){
return this.password;
}
public boolean equals(Object obj) {
//you can check if the obj elements matches your bean elements
//and return true otherwise return false
}
}
Regards
Venkatesh S