PDA

View Full Version : spring:bind JspTagException


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.

billsalvucci
May 1st, 2006, 09:52 AM
It never fails. As soon as I post a message, I figure out the problem. Thanks.

If anyone is interested. The error was not on the bind during the initial POST, but on the bind to the subsequent successView. My success view is the same view that I posted from. After a POSt with "_finish" param, the wizard removes the bean from the session, therefore, it was not availabe to the success view.

I'm not sure what to do about this, but I'm happy to be thinking about a new problem.