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 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-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 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