写错了
Cannot find any information on property 'Fpath' in a bean of type my_io.FilePath'javabean是放上去了的,就是找不到属性,这个怎么回事哦

解决方案 »

  1.   

    你的类里面是getPath,而不是getFpath,当然找不到了,太马虎了
      

  2.   

    rollrock:
    这个有关系吗?getPath只是个方法的名字
      

  3.   

    阿拉终于明白了,set*** get***要和setProperty getProperty里面的属性对应
      

  4.   

    正确的写法:
    package count;
    import java.io.Serializable;
    public class CounterBean implements java.io.Serializable
    {
    private int count=0;
    public CounterBean(){ }
    public int getCount()
    {
    count++;
        return count;
     
    }
    public void setCount(int c)
    {
    count=c;
    }

    }<html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>MY</title>
    </head>
    <body>
    <jsp:useBean id="ReadConfig" scope="session" class="count.CounterBean" />
    <jsp:setProperty name="ReadConfig" property="count" value="111"/>
    count 值:
    <jsp:getProperty name="ReadConfig" property="count" />
    </body>
    </html>