陈肇
蝴蝶為婲醉,婲欲隨風飛,婲舞婲落淚,婲哭婲瓣飛,婲開為誰謝,婲謝為誰悲!

错误提示:
Cannot find bean org.apache.struts.taglib.html.BEAN in any scope
解决:


第一:

在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 >标签

 

 

posted on 2009-12-19 23:22  陈肇  阅读(224)  评论(0编辑  收藏  举报