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
Post a Comment