File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark " Problem in validation  (Select box)" Watch " Problem in validation  (Select box)" New topic

Problem in validation (Select box)

BadalDeepali Garg

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

Joined: Jun 13, 2005
Posts: 4
It would be great if u can give me the sample code for the same
I agree. Here's the link:
subject: Problem in validation (Select box)
It's not a secret anymore!