随便找个例子看看,可能是函数名写得不对
setSomeproperty()

解决方案 »

  1.   

    <%@page contentType="text/html;charset=gb2312"%>
    <HTML>
    <HEAD></HEAD>
    <BODY>
    <jsp:useBean id="unter" class="unter" scope="request"/>
    <%
    String co="0";
    co=unter.ReadFile("d:/co.txt");
    unter.WriteFile("d:/co.txt",co);%>
    </BODY>
    </HTML>
      

  2.   

    javabean属性是有特殊规定的,还要定义设置属性和取属性的方法,命名也是有特殊规定,如属性值type theProperty,设置属性的方法为void setTheProperty(type),取属性的方法为type getTheProperty(),注意大小写。