当前位置: 技术问答>java相关
请教各位老大,小弟是新人
来源: 互联网 发布时间:2015-04-19
本文导语: .... Value of Bean property is : .... ///////////////////////////////////////////////////////////////////////// What should i do in my Bean2 while i encounter error telling me that "cannot find any information on property 'sample'"? help! | ...
....
Value of Bean property is :
....
/////////////////////////////////////////////////////////////////////////
What should i do in my Bean2 while i encounter error telling me that
"cannot find any information on property 'sample'"?
help!
|
Of cause, you should write your Bean2.java like the following:
public class untiled2.Bean2
{
private String sample;
public Bean2()
{
...
}
public String getSample()
{
return sample;
}
public void setSample(String newSample)
{
sample = newSample;
}
}
public class untiled2.Bean2
{
private String sample;
public Bean2()
{
...
}
public String getSample()
{
return sample;
}
public void setSample(String newSample)
{
sample = newSample;
}
}
|
could you confirm you have a method named getsample() in your file
Bean2.java
Bean2.java
|
if you havn't that method, program will be failed!