Hi, I have an interface where a user enters some information into text fields, and queries on them. Every submit button click is a hit to the database, where the query is executed, and its results are displayed. Sometimes, by mistake, the user hits submit button twice, so two database hits occur, wherein, it should be only one database hit. Can I force multiple submit button hits as one submit button hit ? I'm using JSP/Java Beans/EJB tiers. In my JSP tier, can I force this functionality ? Any response will be appreciated. Thanks.
I don't think there's anything you can do server-side, but you could put some javascript in the page. this is what i do - i set the onsubmit event of the form element to the function with onsubmit="return trySubmit();";
I have seen things you people would not believe, attack ships on fire off the shoulder of Orion, c-beams sparkling in the dark near the Tennhauser Gate. All these moments will be lost in time, like tears in the rain.