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 need help in using the struts validator framework.
In my project, I want to use struts validator framework for validation of various fields. The problem is that I have to use a single formbean across 3 JSPs.
What's happening is, when I try to add validator framework in the first JSP, the validator framework is trying to validate the fields present in the next JSP as well (as all the fields on the first and second JSP are in the same formbean) and hence starts throwing error for the fields which are on the second JSP (which will obviously be empty as I have not moved to the second page to fill up the data).
Can anyone tell me how to overcome this issue?