Announcement Announcement Module
Collapse
No announcement yet.
handleInvalidSumbit in AbstractWizardFormController Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • handleInvalidSumbit in AbstractWizardFormController

    This is driving me nuts...

    I have an AbstractWizardFormController (RegistrationController) with 2 jsps (register1.jsp, register2.jsp) and 1 command object (RegistrationForm).

    I set the sessionForm attribute to true but I keep going into the handleInvalidSubmit.

    Here's the RegistrationController :

    Code:
    protected ModelAndView handleInvalidSubmit(HttpServletRequest request, HttpServletResponse response) throws Exception 
    {
            System.out.println("Inside handleInvalidSubmit");
            throw new IllegalStateException("Exception");
    }
        
    protected void validatePage(Object command, Errors errors, int page) 
    {
             System.out.println("Inside Validate Page");
    }
    
    protected Map referenceData(HttpServletRequest request, int page) 
    {
             System.out.println("Inside referenceData");		
             return null;
    }
    	
    protected ModelAndView processCancel(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors)throws Exception 
    {
             System.out.println("Inside Process Cancel");
             return null;	
    }
    
    protected ModelAndView processFinish(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) 
    {
             System.out.println("Inside Process Finish");
             return null;
    }
    Code:
    <bean name="registrationController" 
            class="webapp.RegistrationController">
    <property name="sessionForm"><value>true</value></property>
    <property name="bindOnNewForm"><value>true</value></property>
    <property name="pages">
          <list>
            <value>register1</value>
            <value>register2</value>
          </list>
        </property>
        <property name="commandName"><value>registrationForm</value></property>
    <property name="commandClass">
       <value>webapp.form.RegistrationForm</value>
    </property>
    </bean>

  • #2
    update on the situation....

    I just tried the code at home seems to work......same version of tomcat but different version of jdk (4 at work and 5 at home)...

    Do any of you think the version of the jdk has to do with it?

    Comment


    • #3
      problem was <DefaultContext cookies="false" /> in the tomcat server.xml...

      I feel pretty ashamed of myself now...

      Comment

      Working...
      X