This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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!