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

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

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -