billsalvucci
May 1st, 2006, 09:43 AM
I'm getting the following error trying to bind to a FormController (actually it is a wizard).:
javax.servlet.jsp.JspTagException: Neither Errors instance nor plain target object for bean name 'queryCriteria' available as request attribute
<bean id="retrieveDataFilesController" class="com.rjlg.ehmdrc.core.mvc.web.RetrieveDataFilesCont roller">
<property name="sessionForm"><value>true</value></property>
<property name="commandName"><value>queryCriteria</value></property>
<property name="commandClass"><value>com.rjlg.ehmdrc.core.mvc.web.SearchQueryCriteriaFo rm</value></property>
<property name="pages">
<list>
<value>search.oap</value>
<value>search.cetads</value>
<value>search.testCell</value>
</list>
</property>
<!-- <property name="validator" ref="userValidator"/> -->
<property name="dpwaService">
<ref bean="dpwaService"/>
</property>
<property name="dateFormatString"><value>${dateFormat}</value></property>
</bean>
<spring:bind path="queryCriteria.fileInfoQueryCriteria.esns">
<tr>
<td align="right"><label class="textStyle">ESN:</label></td>
<td>
<input type="text" name="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>"/>
<c:forEach items="${status.errorMessages}" var="message">
<p style="color:red;">Error: ${message}</p>
</c:forEach>
</td>
</tr>
</spring:bind>
This worked at one point. Not sure what I changed that made it stop working. I assume it is a simple mistake, but I've been stuck on it for days.
javax.servlet.jsp.JspTagException: Neither Errors instance nor plain target object for bean name 'queryCriteria' available as request attribute
<bean id="retrieveDataFilesController" class="com.rjlg.ehmdrc.core.mvc.web.RetrieveDataFilesCont roller">
<property name="sessionForm"><value>true</value></property>
<property name="commandName"><value>queryCriteria</value></property>
<property name="commandClass"><value>com.rjlg.ehmdrc.core.mvc.web.SearchQueryCriteriaFo rm</value></property>
<property name="pages">
<list>
<value>search.oap</value>
<value>search.cetads</value>
<value>search.testCell</value>
</list>
</property>
<!-- <property name="validator" ref="userValidator"/> -->
<property name="dpwaService">
<ref bean="dpwaService"/>
</property>
<property name="dateFormatString"><value>${dateFormat}</value></property>
</bean>
<spring:bind path="queryCriteria.fileInfoQueryCriteria.esns">
<tr>
<td align="right"><label class="textStyle">ESN:</label></td>
<td>
<input type="text" name="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>"/>
<c:forEach items="${status.errorMessages}" var="message">
<p style="color:red;">Error: ${message}</p>
</c:forEach>
</td>
</tr>
</spring:bind>
This worked at one point. Not sure what I changed that made it stop working. I assume it is a simple mistake, but I've been stuck on it for days.