3.

Cannot find bean in any scope (Struts) エラー対処

編集
この記事の要点
  • Struts の Cannot find bean org.apache.struts.taglib.html.BEAN in any scope
  • 原因: 等のフォーム要素を タグの外に書いている
  • 対処: 系タグは必ず に置く
  • Struts のフォームタグは内部で form bean を参照するため、外側に置くとスコープに見つからない

 

エラー内容

javax.servlet.jsp.JspException: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope

 

発生条件/原因

html:formタグ内で使用すべきタグ(例: html:text)をhtml:form外で記述した際に発生するエラー。

 

対処法

html:textのようなタグはhtml:formタグ内に記述する。

 

編集
Post Share
子ページ

子ページはありません

同階層のページ
  1. createActionFormにてNullPointerException
  2. java.lang.NullPointerException: Module 'null' not found
  3. javax.servlet.jsp.JspException: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope
  4. Description Resource Path Location Type cvc-complex-type.2.4.a: Invalid content was found starting with element 'X'
  5. パス ... に対するアクションのインスタンスがありません
  6. TLDによると、タグ form の属性 id は無効です