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 usi

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 ca

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 add

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. https://struts.apache.org/c

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 reall

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 bet

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 behavi

Re: Validate url

2005-11-10 Thread Ben
Yes I do have that. Other validations are working fine except the url validation. I also use the following code to call UrlValidation class to validate a url, it gives me the same result, i.e. always return false. String[] schemes = { "http", "https" }; UrlValidator urlValidator = new UrlValidato

RE: Validate url

2005-11-09 Thread Fulgencio Comendeiro, Eduardo
In the file struts-config.xml Do you have ?? -Mensaje original- De: Ben [mailto:[EMAIL PROTECTED] Enviado el: jueves, 10 de noviembre de 2005 8:14 Para: Struts Asunto: Validate url Hi I followed the Struts User's Guide to setup the form so that it validates the URL when the