I have a
java bean and code looks like this
public class userbean
{
private userid;
public void setUserID(
String id )
{
userid = id;
System.out.println("|"+userid.trim()+"|");
}
public String getUserID()
{
System.out.println("in get method: "+ userid);
return userid;
}
}
when I try to get value from bean userid is always returned null although in setmethod it shows that it has set the user ID. Does anyone know why this happens?