I did nothing in Bean2.java. I just want to know what shall I do? I wonder whether i should add a property in Bean2.java or do something else! help,please! I am a beginner
u can see the examples of tomcat.
could you confirm you have a method named getsample() in your file Bean2.java
if you havn't that method, program will be failed!
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; } }
your file is create by JBuilder then ,you can see Bean2.java in your project.
I just want to know what shall I do?
I wonder whether i should add a property in Bean2.java or do
something else!
help,please!
I am a beginner
Bean2.java
{
private String sample; public Bean2()
{
...
} public String getSample()
{
return sample;
} public void setSample(String newSample)
{
sample = newSample;
}
}
then ,you can see Bean2.java in your project.