---
title: "Cannot find bean org.apache.struts.taglib.html.BEAN in any scope"
author: "BillyJoy"
date: "2011-04-18T14:50:59Z"
tags: []
categories: ["编程语言"]
slug: "cannot-find-bean-org-apache-struts-taglib-html-bean-in-any-scope"
draft: false
lastmod: "2011-04-18T14:50:59Z"
id: 1006349
url: "https://billyjoy.iteye.com/blog/1006349"
---

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

解决办法:  
2个原因:

1.在JSP文件中加入&lt;%@ taglib uri="[http://struts.apache.org/tags-html](http://struts.apache.org/tags-html)" prefix="html" %&gt;

如果提示错误，说明jar包没有加入

 

2.如果只是单单使用了&lt;html:text property=“id“/&gt;这个标签，也会出现上面的错误。

因为&lt;html:text property=“id“/&gt;这个标签的外面的form标签必须用&lt;html:form&gt;标签不能用 &lt;form &gt;标签