Results 1 to 4 of 4

Thread: showNewForm

  1. #1
    Join Date
    May 2005
    Posts
    13

    Default showNewForm

    Can anyone explain when this method showNewForm from AbstractFormController will be called by the spring framework?

    Can you please reply soon

  2. #2
    Join Date
    Aug 2004
    Location
    Amsterdam, Netherlands
    Posts
    450

    Default

    It's called on every GET request, or more precisely, on every request that isn't a form submission. Form submissions are identified by the isFormSubmission() method, that by default looks at whether or not the request is a GET request. If so, it's NOT a form submission (triggering the showNewForm()) method.

    By the way, soon enough?

    rgds,

    alef
    Alef Arendsen
    SpringSource
    http://www.springsource.com

  3. #3
    Join Date
    May 2005
    Location
    California, US
    Posts
    735

    Default

    Ok, this is probably a dumb question, but are you assuming that they're using method=POST in their html for the form? I was reading the pet clinic app last night and was wondering why they have method=GET in there.

  4. #4
    Join Date
    May 2005
    Posts
    13

    Default

    Alef Arendsen,
    Thank you very much for your reply.

    I have asked this question because.
    I have explained my problem in other post
    http://forum.springframework.org/showthread.php?t=15884

    I was'nt sure why showNewForm is being called after submitting a form. Can you please check the URL and suggest me

    And how the processig is different between POST and GET.

    I have tested my JSP by changing method from POST to GET. But still same result. Can you please help me with my problem.

    Thank you
    Saritha
    Last edited by robyn; May 16th, 2006 at 03:32 AM.

Posting Permissions

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