| Author |
Struts 1.3 xml validation is not working
|
sambot dakota
Greenhorn
Joined: Feb 10, 2013
Posts: 5
|
|
Hii
i am making simple login page and trying to validate it using struts ValidatorForm but its not working. But same code worked for DynaValidatorForm. Not able to understand what's problem.
It is not showing any error when i click login button.
here is my code.
login.jsp
LoginAction.java
struts.config
valdiation.xml
thankyou
|
 |
sambot dakota
Greenhorn
Joined: Feb 10, 2013
Posts: 5
|
|
|
anybody please help me..!!!
|
 |
sree hareesh
Greenhorn
Joined: Nov 16, 2011
Posts: 11
|
|
|
post LoginForm.java file
|
 |
sambot dakota
Greenhorn
Joined: Feb 10, 2013
Posts: 5
|
|
Here is my LoginForm.java
|
 |
jatan bhavsar
Ranch Hand
Joined: Jul 23, 2008
Posts: 296
|
|
Hi,
Please refer this Link.
In validate method you need to use getter to get the filed on which you would like to put the validation.
Refer the link and let us know if you still find difficulty in validating the fields.
Regards
Jatan
|
 |
sambot dakota
Greenhorn
Joined: Feb 10, 2013
Posts: 5
|
|
|
Thanks for your reply. But i want xml validation.
|
 |
Vinod Tiwari
Ranch Hand
Joined: Feb 06, 2008
Posts: 458
|
|
|
validate method is part of Validation framework. Please go through validation framework once.
|
Vinod Tiwari | Twitter
|
 |
 |
|
|
subject: Struts 1.3 xml validation is not working
|
|
|