struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Is the email regex validator in Struts validation incorrect?
Date Mon, 25 Aug 2014 18:55:32 GMT
2014-08-25 18:27 GMT+02:00 Miguel Almeida <miguel@almeida.at>:
> Note: I pasted the wrong JIRA issue. The correct one is:
> https://issues.apache.org/jira/browse/WW-4395

But you can simple override default pattern with regex or
regexExpression param (don't use both)

<validator type="regex">
  <param name="regex">*.</param>
  <param name="regexExpression"></param>
</validator>

http://struts.apache.org/release/2.3.x/docs/email-validator.html
http://struts.apache.org/release/2.3.x/docs/regex-validator.html


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