你的struts标签库文件有没有放在WEB-INF下????

解决方案 »

  1.   

    <taglib>
        <taglib-uri>/struts-bean</taglib-uri>
        <taglib-location>/WEB-INF/tld/struts-bean.tld</taglib-location>
      </taglib>  <taglib>
        <taglib-uri>/struts-html</taglib-uri>
        <taglib-location>/WEB-INF/tld/struts-html.tld</taglib-location>
      </taglib>  <taglib>
        <taglib-uri>/struts-logic</taglib-uri>
        <taglib-location>/WEB-INF/tld/struts-logic.tld</taglib-location>
      </taglib>  <taglib>
        <taglib-uri>/struts-nested</taglib-uri>
        <taglib-location>/WEB-INF/tld/struts-nested.tld</taglib-location>
      </taglib>  <taglib>
        <taglib-uri>/struts-tiles</taglib-uri>
        <taglib-location>/WEB-INF/tld/struts-tiles.tld</taglib-location>
      </taglib>
      
      <taglib>
        <taglib-uri>/struts-template</taglib-uri>
        <taglib-location>/WEB-INF/tld/struts-template.tld</taglib-location>
      </taglib>
       <taglib>
        <taglib-uri>/jstl/c</taglib-uri>
        <taglib-location>/WEB-INF/tld/c.tld</taglib-location>
      </taglib>
    我都放在/WEB-INF/tld 
    里在
      

  2.   

    改成:<html:text property="name"/>
      

  3.   

    我是把属性专门放到了一个属性BEAN里,然后在formbean里调用属性bean的对象
    所以的tr><td>留言:<html:textarea property="message.content"/></td></tr>
    这样写
      

  4.   

    类javax.servlet.jsp.tagext.TagExtraInfo没有找到,如果你用的是tomcat的话servlet.jar里有这个类....org.apache.struts.taglib.html.MessagesTei继承类javax.servlet.jsp.tagext.TagExtraInfo