[Logo]
Forums Register Login
Validation Framework in struts2
hi i am working with struts 2 with hibernate .

i want to use validation framework with my application ,and i made ApplicationResources.properties file under src/resources/ .

and the myAction-validation.xml in the package where my action class is located.

but m not able to work with it,i started using a simple text field in my jsp


i have used valdiation framework with struts1.x it was cool there but this is first time m working with struts2. Please suggest


HI satnam,
Try using the validate='true' inside your form tag.


Anshul
 
Anshul K Jain wrote:HI satnam,
Try using the validate='true' inside your form tag.


Anshul


i guess this is for client side validation, but in case i want to do some server side validation then i want to use validation framework..and i am able to use it....just need to configure some validation rules with respect to each action ...it pretty simple and good to work with struts validation framework..


thanks for the responses.

cheers
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards



All times above are in ranch (not your local) time.
The current ranch time is
Nov 24, 2017 15:35:10.