Re: Struts Url Validator

2007-08-10 Thread Jasper Floor
/** * This expression derived/taken from the BNF for URI (RFC2396). */ private static final String URL_PATTERN = "/^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?/"; the above regexp is what the validator seems to use to validate urls. For more information dow

Re: Struts Url Validator

2007-08-09 Thread semaj.najraham
This is what I need in validation.xml file allowallschemes true All urls ending with .com or .net is validated while those not ending with .com or dot else is not working. Is this the limitation of struts validator? Jasper Floor wro

Re: Struts Url Validator

2007-08-09 Thread Jasper Floor
well, I'm pretty sure after checking the rfc's (1738 section3.4 and 3.1, 1034 section 3.5 adn 1123 section 2.1) that you are building vaild url's under the http scheme. So either the validator is doing something wrong or you are. Mind a URL is deffined as: : so it really matters which scheme you

Re: Struts Url Validator

2007-08-09 Thread Dale Newfield
Does anybody know if I can use Struts Url Validator for intranet url? For exampe: http://intranet or http://localhost:8080 I'm pretty sure it doesn't try to resolve the machine, or do a DNS lookup in order to determine if the url is valid. One could conceive of building something that did...

RE: Struts Url Validator

2007-08-09 Thread Al Sutton
--Original Message- From: semaj.najraham [mailto:[EMAIL PROTECTED] Sent: 09 August 2007 03:45 To: user@struts.apache.org Subject: Re: Struts Url Validator I can validate http://www.google.com, https://www.google.com, but not http://google Is this the limitation of struts url validator? I wo

Re: Struts Url Validator

2007-08-08 Thread semaj.najraham
I can validate http://www.google.com, https://www.google.com, but not http://google Is this the limitation of struts url validator? I would really appreciate if someone would reply. Thank you, semaj semaj.najraham wrote: > > Does anybody know if I can use Struts Url Validator for intranet ur