Thanks for your reply, but i am not using the struts 2.0, presently with the 1.x only..
please suggest me to solve this problem.. in struts 1.x Sudhakar Jose Plana Mario wrote: > > Hi, > > I think that you could use the TokenInterceptor and a token tag to solve > the > double submit problem: > http://struts.apache.org/2.0.14/docs/token-interceptor.html > > > > Bests, > > José Plana > > > > On Tue, Feb 17, 2009 at 6:15 AM, sudhakargupta < > sudhakargupta_s...@hotmail.com> wrote: > >> >> Thanks for your reply.. >> >> For submit button i'm calling different action method like "save2tables" >> if >> i disabled the button after click on the submit then it calls the default >> "save" action method so, the record is not updated. for this one i >> changed >> the action of the form like "saveTwoTables". >> >> please suggest me how to solve this problem. >> >> >> >> mraible wrote: >> > >> > You might try using JavaScript to disable the button once it's been >> > clicked. >> > >> > Matt >> > >> > On Mon, Feb 16, 2009 at 4:48 AM, sudhakargupta < >> > sudhakargupta_s...@hotmail.com> wrote: >> > >> >> >> >> Hi.. >> >> >> >> I am updating 2 tables from the one form page it is saved >> successfully, >> >> if >> >> i double click on the save button then it throws an exception just now >> i >> >> find out the double submit problem in this one it shows the one table >> >> data >> >> correctly, but the another table data is not loaded in the form page. >> in >> >> my >> >> observation there is a Exception like this >> >> >> >> >> >> >> ---------------------------------------Exceptions-------------------------------- >> >> >> >> AbstractFlushingEventListener.performExecutions(301) | Could not >> >> synchronize >> >> database state with session >> >> >> >> org.hibernate.StaleObjectStateException: Row was updated or deleted by >> >> another transaction (or unsaved-value mapping was incorrect) in the >> >> server >> >> logs >> >> >> >> >> >> >> ---------------------------------------Exceptions-------------------------------- >> >> >> >> and in the form page the value of the submit button is changed from >> save >> >> to >> >> submit >> >> >> >> can u suggest me how to overcome the problem with this problem.. >> >> >> >> Regards, >> >> Sudhakar >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Double-Submit-problem-in-appfuse-1.9-struts-tp22035815s2369p22035815.html >> >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net >> >> For additional commands, e-mail: users-h...@appfuse.dev.java.net >> >> >> >> >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Double-Submit-problem-in-appfuse-1.9-struts-tp22035815s2369p22050931.html >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net >> For additional commands, e-mail: users-h...@appfuse.dev.java.net >> >> > > -- View this message in context: http://www.nabble.com/Double-Submit-problem-in-appfuse-1.9-struts-tp22035815s2369p22057660.html Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net For additional commands, e-mail: users-h...@appfuse.dev.java.net