日期:2014-05-17  浏览次数:20622 次

Struts标签之Cannot find bean under name org.apache.struts.taglib.html.BEAN错误

?

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


一、报了这个错就说明相关标签没放<form>里。

比如:

<html:select property="111">

<html:option value="1">1</option>

</html:seelct>

<html:form action="/select111.do" method="post">

</html:form>

这样就会出错,把html:select标签放到html:form里就OK

改为:

<html:form action="/select111.do" method="post">

<html:select property="111">

<html:option value="1">1</option>

</html:seelct>

</html:form>

二、后面还有错,那是因为html:form是没有id和name属性。