i m new to struts2 framework .i m tring to validate my login form with validation annotation,but @validation is depritiated.
i search it so much but all examples are with @validation but it is now depritated so please any body help me to apply validation with annotation.
the 1st 2 points are important from the above link.. you may be missing them.
Assure that you're using defaultStack interceptor stack because inside it are workflow and validation interceptors that are responsible of execute validation logic and redirect to appropiate result when validation triggers.
Define a result named "input" in action's declaration on struts.xml . This is the result where validation must redirect automatically if exists validation errors. If input result is not defined it will give an error of result not found.
Joined: Feb 02, 2011
thanks a lot pooja .
Actually my eclipse is showing it @Validation and that's why i was confused .i tried it with your url and it is working.
thanks once again