六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 134|回复: 0

Cannot find bean org.apache.struts.taglib.html.BEAN

[复制链接]

升级  95.67%

151

主题

151

主题

151

主题

举人

Rank: 3Rank: 3

积分
487
 楼主| 发表于 2013-2-7 20:17:59 | 显示全部楼层 |阅读模式
Cannot find bean org.apache.struts.taglib.html.BEAN in any scope
错误提示:
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 >标签
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表