The Artima Developer Community
Sponsored Link

Java Answers Forum
Handling double submit with out java script

2 replies on 1 page. Most recent reply: Sep 26, 2003 5:23 AM by vinod

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
vinod

Posts: 22
Nickname: vinod
Registered: Feb, 2002

Handling double submit with out java script Posted: Sep 26, 2003 2:36 AM
Reply to this message Reply
Advertisement
Friends,

Could any one of you suggest me a way where i can handle form double submit situation with out suing Java Script.

Thanks in advance,
Vinod.


mausam

Posts: 243
Nickname: mausam
Registered: Sep, 2003

Re: Handling double submit with out java script Posted: Sep 26, 2003 4:22 AM
Reply to this message Reply
write two forms....

without js?

vinod

Posts: 22
Nickname: vinod
Registered: Feb, 2002

Re: Handling double submit with out java script Posted: Sep 26, 2003 5:23 AM
Reply to this message Reply
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.

Flat View: This topic has 2 replies on 1 page
Topic: setDate error Previous Topic   Next Topic Topic: connecting to msaccess database?!

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use