你在web.xml中是否增加了 标签的定义.

解决方案 »

  1.   

    web.xml没有配,
    可为什么<html:button>和<logic:iterate>都可以运行呢
      

  2.   

    <html:hidden property="xm" />
    这种写法有错 应该是你的form标签是<form>而不是<html:form>吧
      

  3.   

    看看你的表单元素是不是在相应的form内Cannot find bean org.apache.struts.taglib.html.BEAN in any scope
    错误信息 javax.servlet.jsp.JspException: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope
    可能原因
    lTrying to use Struts form subelement tags outside of the Struts&#39; form tag
      

  4.   

    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>和
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
    这两种写法的区别就在于你的web.xml文件中对<taglib-uri>属性是如何定义的,只有在这里的uri和web.xml中的写法保持一致了,才可以正确的调用显示!