This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I enabled the client side validation error in the JSP. When the user enters some wrong/missing information for the 1st time and submits, the client-side validation kicks in and shows the error messages. When the user clicks submit again, the same error messages are repeated. Is there a way to clear the previous error messages before printing the new ones?
It seems that these 2 functions are not doing their job? Tried to add an alert() in each of these functions (end), but still the alert didn't come up.
Are you using the spring plugin? If so, make sure that your spring beans are no singletons (by setting in the application-context.xml the value singleton to false, in the bean-tag). Took me also several hours to find this out.
thanks Joachim Rohde!!, i had the same problem with struts 2 and spring plugin for instantiate actions. The problem was: 1. On each validation error, the messages validation is reprinted once more. 2. When there was not error validation, the form not redirect to the action.
But configurating each action like no singletons in the application-context.xml, all works fine.