The moose likes Struts and the fly likes DynaValidatorActionForm - Cannot find bean... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "DynaValidatorActionForm - Cannot find bean..." Watch "DynaValidatorActionForm - Cannot find bean..." New topic

DynaValidatorActionForm - Cannot find bean...

Alessandro Ilardo
Ranch Hand

Joined: Dec 23, 2005
Posts: 218
Hi there,
I'm using Struts 1.2.9 and to validate my form the DynaValidatorActionForm xml configuration.
But when I call the jsp which has the form I get the following error:

javax.servlet.jsp.JspException: Cannot find bean: "week" in any scope
at org.apache.struts.taglib.TagUtils.lookup(

14:12:00,060 ERROR [InsertTag] ServletException in '/WEB-INF/jsp/shift/form-datePicker.jsp': Cannot find bean: "week" in any scope
org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/jsp/shift/form-datePicker.jsp:35

32: <html:hidden property="task" value="list"/>
33: <h3><bean:message key="" arg0="la data"/></h3>
34: <label for="week">
35: <html:text name="week" property="week" styleClass="f-name" tabindex="1" />
36: <br />
37: <span class="error"><html:errors property="week"/></span>
38: </label>

Some reference

Thanks in advance for any help.


trying to decode a woman mind....
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
The problem is with the line:

in your JSP. In an html:text tag, the name should refer to the name of the form bean used by the JSP, or better yet, left out, because it defaults to the form bean name if omitted.

Consultant, Sima Solutions
I agree. Here's the link:
subject: DynaValidatorActionForm - Cannot find bean...
It's not a secret anymore!