Hi,
When I run my .jsp file I am getting this error. can any one help. I looked in to the struts-config.xml and I already have the action form bean and I am using the same name in my html:form, but still I am getting this error.
please help ASAP
Error 500: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope
Thanks,
Syed
-
Struts - Bean (5 messages)
- Posted by: Syed Ali
- Posted on: February 23 2005 15:36 EST
Threaded Messages (5)
- Struts - Bean by ahmed tantan on February 23 2005 21:29 EST
- Struts - Bean by Paul Morie on March 09 2005 13:41 EST
- error when using JSP 2.0 custom tags by Michel de Groot on March 14 2005 11:50 EST
- Solved! by Michel de Groot on March 15 2005 05:02 EST
- Struts - Bean by J2EE DISCUSSION ANIL LINGUTLA on June 17 2005 15:22 EDT
-
Struts - Bean[ Go to top ]
- Posted by: ahmed tantan
- Posted on: February 23 2005 21:29 EST
- in response to Syed Ali
It sounds like your struts bean tag is not referenced in web.xml -
Struts - Bean[ Go to top ]
- Posted by: Paul Morie
- Posted on: March 09 2005 13:41 EST
- in response to Syed Ali
-
error when using JSP 2.0 custom tags[ Go to top ]
- Posted by: Michel de Groot
- Posted on: March 14 2005 11:50 EST
- in response to Syed Ali
Hi,
I get the same errors, but only in a specific case.I have a custom tag 'w.tag' which accepts dynamic attributes in variable 'steps'. 'steps' contains JSP fragments that contain html:text tags.
This is the relevant code for w.tag:
<html:form action="${action}" method="post">
${steps[step1]}
<html:submit>Button</html:submit>
</html:form>
And this is an example JSP fragment contained in 'steps':
<html:text property="map(${settingId})"/>
(this is part of another custom tag)
I get the 'cannot find bean .... in any scope' error. This is regardless of the scope I put the html:form in.
The error does not occur if I put the fragment directly in the w.tag (instead of ${steps[step1]}. So the struts configuration is ok. For parametrization I want to keep the dynamic attributes, so I cannot simply include the fragment in w.tag.
What could be the cause of this error?
Thanks! -
Solved![ Go to top ]
- Posted by: Michel de Groot
- Posted on: March 15 2005 05:02 EST
- in response to Michel de Groot
In my case, the JSP fragments that are passed through jsp:attributes were parsed BEFORE w.tag was executed. Since w.tag creates the form, the form subelements are used outside of the scope of the form, which results in an error.
I decided to take the form outside of w.tag and nest w.tag inside the form. -
Struts - Bean[ Go to top ]
- Posted by: J2EE DISCUSSION ANIL LINGUTLA
- Posted on: June 17 2005 15:22 EDT
- in response to Syed Ali
make sure you include all the elements with in the form tag.