Please provide the source code of your "Bean2.java".

解决方案 »

  1.   

    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
      

  2.   

    u can see the examples of tomcat.
      

  3.   

    could you confirm you have a method named getsample() in your file
    Bean2.java
      

  4.   

    if you havn't that method, program will be failed!
      

  5.   

    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;
      }
    }  
      

  6.   

    your file is create by JBuilder
    then ,you can see Bean2.java in your project.