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 have been trying to have validation inside my application using tutorials from roseindia and java-x.blogspot.com and based on them I have created small sample application but validations are not working. The source codes are below:
Application code and flow is working but username and password validation is not working. One thing I got is that if Action name is LoginAction then validation XML file name should be LoginAction-validation.xml which is true in my case. All jars are there in proper place and have rechecked them from given tutorials and samples.
I've never seen hibernate-default package before (I need to concentrate on struts more ), but as is given here, the defaultStackHibernate doesn't include Struts validation (instead it uses hibernate validations), so struts validations are not applied to your actions. You'll have to change your showcaseStack and add the validation interceptor to it...