Hi
I have been successfully using SimpleFormController and creating my own implementations of Controller for a while. But now I need form based behaviour but no validation and no 'succes' view (the form is parameters for a list filter, output always shown on the same listing page). AbstractFormController seems the way to go.... but the commandName I have used is not found in the request when fowarding to the JSP...
Code:<bean id="genericListController" class="com.wiley.uk.coi.web.spring.FilteredListController"> <property name="commandName"><value>filter</value> </property> <property name="commandClass"><value>com.knowsense.coi.model.ContentListFilter</value> </property> <property name="contentManager"><ref bean="contentManager"/></property> </bean>Code:<spring:bind path="filter.status"> <select name="<c:out value="${status.expression}"/>"> <c:forEach var="statusName" items="${allStatuses}"> <option <c:if test="${statusName == status.value}">selected</c:if> value="<c:out value="${statusName}"/>"> <c:out value="${statusName}"/></option> </c:forEach> </select> </spring:bind>
I've overridden the processFormSubmission() and showForm() methods to return a ModelAndView object - but these don't affect the binding of the command object into the request do they? So why can't the JSP find the filter object?
Your thoughts appreciated
Neil Canham


Reply With Quote