*
The moose likes Struts and the fly likes Validation 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 "Validation" Watch "Validation" New topic
Author

Validation

Nick Delauney
Ranch Hand

Joined: Sep 28, 2002
Posts: 43
Hello all,

I have a drop down list with several options and one text field. Depending on what is in my drop down list I need to validate the text field differently.

For example if I have "Stock" selected in the list, I should have letters in the textfield. If I have "Cash" selected in the list I should have numbers.

I looked at the validwhen validation of validator, but cannot see how to combine it with other validations.

Can anyone assist, thanks,


N.D:"Anything worth having, takes time to get"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Validation
 
Similar Threads
dynamic drop down list values
Reg : Drop-down box
fetch only checked data
Server-side validation
transfer data from text box to multiple select list box.