-
Jun 27th, 2005, 11:06 AM
#1
showNewForm
Can anyone explain when this method showNewForm from AbstractFormController will be called by the spring framework?
Can you please reply soon
-
Jun 27th, 2005, 02:52 PM
#2
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
-
Jun 27th, 2005, 02:58 PM
#3
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.
-
Jun 27th, 2005, 03:28 PM
#4
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
-
Forum Rules