Results 1 to 4 of 4

Thread: Calling the mwthod onSubmit

  1. #1
    Join Date
    Jul 2005
    Location
    COIMBATORE-INDIA
    Posts
    110

    Default Calling the mwthod onSubmit

    Hai users

    i am having a small problem with the method onSubmit() in the simpleform controller.

    In my form onbind is called and then validator is also called whose return value is true but the method on submit is not being callled.What may be the problem
    Code:
    protected ModelAndView onSubmit(Object command)throws Exception{  
    		logger.info("Inside the onsubmit");
    	       return new ModelAndView(new RedirectView(getSuccessView()));
    	}
    Can we get the HttpServetRequest parameter in this.

    Thanks
    aniesh U.K

  2. #2
    Join Date
    Aug 2004
    Posts
    1,905

    Default

    Override
    Code:
    	protected ModelAndView onSubmit(
    			HttpServletRequest request,	HttpServletResponse response, Object command,	BindException errors)
    			throws Exception

  3. #3
    Join Date
    Jul 2005
    Location
    COIMBATORE-INDIA
    Posts
    110

    Default

    Hai yatesco

    Sorry its not workingCan u pls help


    Thanks
    aniesh U.K

  4. #4
    Join Date
    Aug 2004
    Posts
    1,905

    Default

    What isn't working?

    If onSubmit is never being called, then *from reading the docs* you might have some validation errors.

Similar Threads

  1. redirect view after onSubmit
    By eg in forum Web
    Replies: 6
    Last Post: Apr 13th, 2007, 07:25 AM
  2. SimpleFormController not do onSubmit
    By heleno_alves in forum Web
    Replies: 2
    Last Post: Oct 18th, 2005, 07:22 AM
  3. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  4. Forcing onSubmit to be called
    By biguniverse in forum Web
    Replies: 1
    Last Post: Aug 2nd, 2005, 01:54 PM
  5. onSubmit - Say it ain't so
    By gmichel in forum Web
    Replies: 8
    Last Post: May 7th, 2005, 04:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •