aspose file tools*
The moose likes Struts and the fly likes  Problem in validation  (Select box) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark " Problem in validation  (Select box)" Watch " Problem in validation  (Select box)" New topic
Author

Problem in validation (Select box)

BadalDeepali Garg
Greenhorn

Joined: Jun 13, 2005
Posts: 4
hi there are two drop down on my jsp while i do serarch atlest one of them should be selected is there any way i can get around this in validator.xml
Karl Beowulph
Ranch Hand

Joined: May 31, 2004
Posts: 130
You're going to want to use the "requiredif" function in the validator to specify your conditions.
[ June 14, 2005: Message edited by: Karl Beowulph ]
BadalDeepali Garg
Greenhorn

Joined: Jun 13, 2005
Posts: 4
It would be great if u can give me the sample code for the same
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problem in validation (Select box)