写错了
Cannot find any information on property 'Fpath' in a bean of type my_io.FilePath'javabean是放上去了的,就是找不到属性,这个怎么回事哦
Cannot find any information on property 'Fpath' in a bean of type my_io.FilePath'javabean是放上去了的,就是找不到属性,这个怎么回事哦
这个有关系吗?getPath只是个方法的名字
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>