File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts validator framework-validwhen Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts validator framework-validwhen" Watch "Struts validator framework-validwhen" New topic
Author

Struts validator framework-validwhen

Abhijit Sarkar
Greenhorn

Joined: Apr 16, 2006
Posts: 20
Hi,
For long I've been trying to use the validwhen validation from Struts framework but never got it working, Can anyone help me by showing a piece of working code which uses validwhen?
Thanking in anticipation.
Ravi Seshu
Ranch Hand

Joined: Mar 19, 2005
Posts: 38
HI,
validation show be called or must set in action mapping...ok

by default validation is set to true only, so..., u can invoke it in action class taking the form bean object validate method...

-eswar
Abhijit Sarkar
Greenhorn

Joined: Apr 16, 2006
Posts: 20
Hi,
I'm not sure you understood my problem-I'm using Struts own validator framework. Hence neither any validation coding is required in the action class nor the validate method of the concerned form bean is required. To add, all other validations are working fine except the validwhen.
Abdul Gafoor
Greenhorn

Joined: Nov 22, 2005
Posts: 11
I attached work this one
Abdul Gafoor
Greenhorn

Joined: Nov 22, 2005
Posts: 11
I will attach working code. please send me your mail id.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts validator framework-validwhen
 
Similar Threads
Validation in sturts
intRange validations
Struts
struts 1.2.7 validation using validwhen
how can use conditional validations on predefined validations in struts1.2