Neither Errors instance nor plain target object for bean name 'releaseSearchList' available as request attribute error again
I tried some of the posted questions in the forums. Everyone was saying that I should use a SimpleFormController with bind but I had much problems trying to get that to work.
Thank you all who attemp to help me resolve my problem. My code is due in a week LMAO.
config:
Code:<bean id="releaseSearchController" class="com.att.ivr.drm.ui.release.ReleaseSearchController"> <property name="commandName" value="releaseSearchList" /> <property name="commandClass" value="com.xxx.xxx.drm.to.ReleaseTO" /> <property name="commandView"><value>release/release-search</value></property> <property name="userFindService" ref="userFindService" /> <property name="releaseFindService" ref="releaseFindService" /> </bean>
jsp:
controller:Code:<dt><label for="releaseName">Release Name:</label></dt> <dd><spring:bind path="releaseSearchList.releaseName"> <input name="releaseName" type="text" maxlength="10" value="<c:out value="${status.value}"/>" /> </spring:bind> </dd>
Thank you very muchCode:public class ReleaseSearchController extends AbstractCommandController { ... protected ModelAndView handle(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) throws Exception { ... ModelAndView mav = new ModelAndView(commandView, ModelConstants.MODEL, model); mav.addObject("errors", errors.getModel()); return mav; }


Reply With Quote
