Re: Validate URL or email with internationalized domain name (IDN)

2021-02-25 Thread Guenter Paul
I found a solution and mad an example app. You can show it here: https://www.fentool.de/dwr/ The source and description are here: https://gitlab.com/gpaulab-public/struts-dwr-validate-example I hope it's useful Best wishes Guenter

Re: Validate URL or email with internationalized domain name (IDN)

2021-02-01 Thread Guenter Paul
In a second step Iried to use the DWR-method. The app example is simple. But using the class DWRValidator break: Dispatcher du = Dispatcher.getInstance(); The Dispatcher is NULL and I can't find the problem. Perhaps somebody has a solution?

Re: Validate URL or email with internationalized domain name (IDN)

2021-01-28 Thread Guenter Paul
I think the class "org.apache.struts2.validators.DWRValidator" will not works so I try another way. I found a solution, maybe we can use it? I found a good example using dwr here: https://www.jitendrazaa.com/blog/java/jsp/step-by-step-dwr-application-simple-ajax-in-java/ What is to do: - for

Re: Validate URL or email with internationalized domain name (IDN)

2021-01-25 Thread Lukasz Lenart
pon., 25 sty 2021 o 12:38 Guenter Paul napisał(a): > DWR valdiation looks fine. Is there any small example? If not, I will try it > by myself and try to use it. After I would try to use URL- and > EMail-Validation. You can check the Showcase app, there should be an example how to use it. You

Re: Validate URL or email with internationalized domain name (IDN)

2021-01-25 Thread Guenter Paul
DWR valdiation looks fine. Is there any small example? If not, I will try it by myself and try to use it. After I would try to use URL- and EMail-Validation. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For

Re: Validate URL or email with internationalized domain name (IDN)

2021-01-20 Thread Lukasz Lenart
niedz., 17 sty 2021 o 15:18 Guenter Paul napisał(a):> > I'm not sure. Perhaps a solution with Ajax is possible? Maybe we should drop support for Client Side Validation in case of EmailValidator - just in case of pure JS. The Ajax/DWR valdiation should be used instead.

Re: Validate URL or email with internationalized domain name (IDN)

2021-01-17 Thread Guenter Paul
I'm not sure. Perhaps a solution with Ajax is possible? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Validate URL or email with internationalized domain name (IDN)

2021-01-15 Thread Lukasz Lenart
pt., 15 sty 2021 o 16:21 Guenter Paul napisał(a): > > OK, client validation is a problem, that's true. I don't use it, but yes, > it's usefull. > > I found punycode for that: > https://github.com/bestiejs/punycode.js > > It's MIT-licence, I'm not sure we can use it for standard. > > I'm not

Re: Validate URL or email with internationalized domain name (IDN)

2021-01-15 Thread Guenter Paul
OK, client validation is a problem, that's true. I don't use it, but yes, it's usefull. I found punycode for that: https://github.com/bestiejs/punycode.js It's MIT-licence, I'm not sure we can use it for standard. I'm not really good in javascript, but I can it to write my own decoder. The

Re: Validate URL or email with internationalized domain name (IDN)

2021-01-14 Thread Lukasz Lenart
czw., 14 sty 2021 o 16:25 Günter Paul napisał(a): > > In Germany we can use domaine-names like "münchen.de". > The struts validators URLValidator and EmailIdnValidator can't handle such > name with umlaut. > The domaine is valide but not for the validator. > > Is it possible to change this

Validate URL or email with internationalized domain name (IDN)

2021-01-14 Thread Günter Paul
In Germany we can use domaine-names like "münchen.de". The struts validators URLValidator and EmailIdnValidator can't handle such name with umlaut. The domaine is valide but not for the validator. Is it possible to change this behavior? I overwrite the classes and it works for me. But I think