struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Use RegexFieldValidator with multiple values
Date Fri, 30 Oct 2015 07:08:12 GMT
2015-10-29 22:37 GMT+01:00 JOSE L MARTINEZ-AVIAL <jlmagc@gmail.com>:
> Hello,
>    I'm trying to use @RegexFieldValidator to validate a parameter that can
> have multiple values. It seems that the class RegexFieldValidator can only
> be used for a single String, not an String[]. Can someone confirm it, and
> if so, is there any alternative to validate all the values?

You can try to use the expression validator
http://struts.apache.org/docs/expression-validator.html

Please also register an issue in JIRA to add support for arrays in the
Regex validator


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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


Mime
View raw message