<bean:page id="thissession" property="session"/>
<bean:write name="thissession" property="creationTime"/>
可以显示
但是
<bean:page id="thissession" proerpty="session"/>
<bean:write name="thissession" property="ContentLength"/>
显示
javax.servlet.jsp.JspException: No getter method for property ContentLength
of bean thiss
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:968)
at org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:286)
at _test__jsp._jspService(/test.jsp:34)
at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
at com.caucho.jsp.Page.subservice(Page.java:506)
at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182)
at com.caucho.server.http.Invocation.service(Invocation.java:315)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:253)
at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:170)
at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
at java.lang.Thread.run(Thread.java:534)请各路高手回帖急急

解决方案 »

  1.   

    这个地意思是他没找到那个属性 我看你下面有个lookup错误 是不是这个属性需要配数据源
    我也在学习中;请高手具体说说吧
      

  2.   

    缺少getter方法,要么就是这个属性更本就找不到
      

  3.   

    你没有写ContentLength的getter方法,顺便说一句,就是写了也得不到。因为你的变量是大写开头!变量必须小写开头,contentLength, getter和setter方法才是大写!getContentLength()