struts2 - Server side validation error message are repeated in Struts 2 -


i using struts2 xml validaion (action-validation.xml). problem when clicked save button more 1 time, error message appears repeatedly. how resolve issue?

you should prevent submitting form (and saving data) twice, instead of caring double error messages, go away automatically once you'll solve real problem.

to prevent double form submission, disable submit button javascript; prevent f5 landing page, use post redirect pattern, or history.pushstate(). prevent multiple submissions when crafted, use token (tokeninterceptor in struts2).

read more:


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -