初学Struts遇到了一个问题。请求大家帮忙。当我在一个页面中用<html:file maxlength="60" property="theFile" size="60"/>标签时确出现如下错误:
javax.servlet.jsp.JspException: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope
用其他的标签都不会出问题啊?究竟是怎么回时呢?

解决方案 »

  1.   

    当我加了一个 <html:form》标签后出现了如下错误:
    javax.servlet.jsp.JspException: No getter method for property theFile of bean org.apache.struts.taglib.html.BEAN
    其他的标签都可以用,就是它不能用啊?是怎么回事呢?
      

  2.   

    你的FILE标签对应的FORM的属性类型定义错了吧?
      

  3.   

    html:file maxlength="60" property="theFile" size="60"/>
    form的name需要填不?
      

  4.   

    TO:楼上
    name不是必须的属性
      

  5.   

    不管property是formFile还是theFile 看你对应的FormBean中是否有其属性 和 get set 方法