`
and4walker
  • 浏览: 557324 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Cannot find bean org.apache.struts.taglib.html.BEAN in any s

阅读更多
错误提示:
Cannot find bean org.apache.struts.taglib.html.BEAN in any scope

解决办法:
2个原因:

第一:

在JSP文件中有;
<%@taglib uri="struts-bean" prefix="bean"%>
<%@taglib uri="struts-html" prefix="html"%>
<%@taglib uri="struts-logic" prefix="logic"%>

在web.xml配置了如下:

    <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-template</taglib-uri>
      <taglib-location>/WEB-INF/tld/struts-template.tld</taglib-location>
    </taglib>

第二:

<html:text property=“id“/>这个标签的外面的form标签必须用<html:form>标签不能用 <form >标签


分享到:
评论
3 楼 nodonkey 2012-03-16  
thx alot
2 楼 BillyJoy 2011-04-18  
非常感谢,原来 必须要用<html:form>
1 楼 fenzTen 2007-04-12  
太谢谢你了
终于知道原因了

相关推荐

Global site tag (gtag.js) - Google Analytics