• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to avoid multiple page submits

 
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<html:submit property="forward" styleClass="nav_button" tabindex="10" ">
<bean:message key="atm.common.save.displayName"/>
</html:submit>

I am using above tag for Submitting the page, its taking some time after page gets submitted to hit server and come back mean while user is clicking submit button multiple times how do i avoid this


I tried
<html:submit value="Submit" onKlick="this.disabled=true;submit()"/>


and the javascript validations in "onFormSubmit" method of the form, as below failed

<sslext:form action="/Permits/handleWalkin" focus="regionalOffice" onsubmit="return onformSubmit(); ">

Any suggestions how to go abt this situation
[ October 22, 2007: Message edited by: Raghunandan Mamidala ]
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See question 5 of this forum's FAQ.
 
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
...also, see these links for more on the topic:

https://coderanch.com/t/55328/Struts/Form-Resubmitting
https://coderanch.com/t/56071/Struts/multiple-form-submission

- Brent
reply
    Bookmark Topic Watch Topic
  • New Topic