ameimeng 发表于 2017-1-14 06:02:25

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

  Cannot find bean under nameorg.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属性。
页: [1]
查看完整版本: Struts标签之Cannot find bean under name org.apache.struts.taglib.html.BEAN错误