Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to avoid multiple page submits

 
Sri Anand
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • 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 ]
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See question 5 of this forum's FAQ.
 
Brent Sterling
Ranch Hand
Posts: 948
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic