vinod
Posts: 22
Nickname: vinod
Registered: Feb, 2002
|
|
Re: Handling double submit with out java script
|
Posted: Sep 26, 2003 5:23 AM
|
|
Let me make my problem clear.
I have a form that accepts an nmber as input. When i am submitting the form, the servlet will add that number to sum value (present in session) and displays the resultant sum on to the screen.
The initial sum value is 10 (Let us assume). I entered a value, 2, in the form and clicked on submit. Even before i see the resultant sum i clicked on submit once again. So the servlet will be executed twice and i will get sum value as 14.
I want to avoid this situation. How many ever time i click on submit (before the result getting displayed) i need to get the first submits value only. That is 12 in this case.
Could any of you have any suggestions on this.
Thanks in advance, Vinod.
|
|