wood burning stoves 2.0*
The moose likes Struts and the fly likes Struts 1.3 xml validation is not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 1.3 xml validation is not working " Watch "Struts 1.3 xml validation is not working " New topic
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: 459
    
    1
validate method is part of Validation framework. Please go through validation framework once.


Vinod Tiwari | Twitter
 
jQuery in Action, 2nd edition
 
subject: Struts 1.3 xml validation is not working
 
Similar Threads
struts action form not working
Struts: DynaValidatorForm not working
Error using Struts Validator
Validation framework is not working
problem in Struts Validation