Hi, an incomprehensible problem occur with a SimpleFormController object : the onSubmit method is bypassed when I submit my form.
- my controller public class BugReporterController extends SimpleFormController contains :
protected Object formBackingObject(HttpServletRequest request) throws Exception
protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response,
Object command, BindException errors) throws Exception
- Xml configuration file
Thanks<prop key="/bug/report.html">Bug.ReporterController</prop>
<bean id="Bug.ReporterController" class="com.omegames.kilometres.bugReporter.BugRepo rterController" autowire="byName">
<property name="sessionForm" value="true"/>
<property name="commandName" value="bug"/>
<property name="commandClass" value="com.omegames.kilometres.domain.Bug"/>
<property name="formView" value="bug/report"/>
<property name="validator" ref="Bug.Validator"/>
<property name="successView" value="bug/succes"/>
</bean>


Reply With Quote