struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Weber <erikwe...@mindspring.com>
Subject Re: Conditional validation/field chaining with Validator plugin
Date Fri, 09 Jul 2004 03:45:20 GMT
Upon further reading (sorry for the lack of rtfm), I discovered requiredif.

Erik



Erik Weber wrote:

> Greetings. I am using the Validator plugin with Struts ValidatorForm 
> subclasses.
>
> In one form, I have a boolean select (the labels are "Yes" and "No", 
> the values are "true" and "false"). There is a companion text area for 
> an explanation -- to be filled in if the boolean select value happens 
> to be "true". So in otherwords, the business rule is that the text 
> area must contain a value if the value of the select is "true", 
> otherwise, it can be left blank. So I need conditional validation or 
> field chaining.
>
> I am assuming that the so-called "validWhen" validator rule will solve 
> this problem, right?
>
> Could someone tell me if this rule has been written? Does anyone have 
> a copy of it or of the correct validation-rules.xml file that includes 
> it? Do I have to upgrade my Struts distribution or can I just replace 
> this file and maybe one jar?
>
> Thanks,
> Erik
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message