Re: URL pattern for validation
I think that, strictly speaking, a URL needs at least the first '/' in the path portion. Have you tried http://www.maintainfit.com/ ? When in doubt, check the RFC: http://www.faqs.org/rfcs/rfc1738.html -- Jeff Daniel Watrous wrote: snip I am trying to use the URL validation for a form in my application. /snip snip I have tried www.maintainfit.com http://www.maintainfit.com /snip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URL pattern for validation
On Wed, 09 Feb 2005 13:13:19 -0500, Jeff Beal [EMAIL PROTECTED] wrote: I think that, strictly speaking, a URL needs at least the first '/' in the path portion. Have you tried http://www.maintainfit.com/ ? When in doubt, check the RFC: http://www.faqs.org/rfcs/rfc1738.html FYI, there are more recent standards documents than RFC 1738 around the syntax of URLs and URIs ... in particular you'll want to review the following document: http://www.faqs.org/rfcs/rfc3986.html for the latest updates. -- Jeff Craig Daniel Watrous wrote: snip I am trying to use the URL validation for a form in my application. /snip snip I have tried www.maintainfit.com http://www.maintainfit.com /snip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URL pattern for validation
I ended up getting curious, so rather than just speculate, I dug into both RFC's, it looks like I was wrong. According to the both RFC's (1738 and 3986) the '/' is not required for an empty path in a URL/URI. Sorry, Daniel, no help here. -- Jeff Craig McClanahan wrote: On Wed, 09 Feb 2005 13:13:19 -0500, Jeff Beal [EMAIL PROTECTED] wrote: I think that, strictly speaking, a URL needs at least the first '/' in the path portion. Have you tried http://www.maintainfit.com/ ? When in doubt, check the RFC: http://www.faqs.org/rfcs/rfc1738.html FYI, there are more recent standards documents than RFC 1738 around the syntax of URLs and URIs ... in particular you'll want to review the following document: http://www.faqs.org/rfcs/rfc3986.html for the latest updates. -- Jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URL pattern for validation
I have found that the only url that passes validation in the struts package is a url that references a specific page. For example http://www.maintainfit.com/ will not pass but http://www.maintainfit.com/index.php will pass. I suspected that the nofragments set to false would allow the first url, but even with that it doesn't. I think that I will end up using a regexp instead. DW - Original Message - From: Jeff Beal [EMAIL PROTECTED] To: user@struts.apache.org Sent: Wednesday, February 09, 2005 12:17 PM Subject: Re: URL pattern for validation I ended up getting curious, so rather than just speculate, I dug into both RFC's, it looks like I was wrong. According to the both RFC's (1738 and 3986) the '/' is not required for an empty path in a URL/URI. Sorry, Daniel, no help here. -- Jeff Craig McClanahan wrote: On Wed, 09 Feb 2005 13:13:19 -0500, Jeff Beal [EMAIL PROTECTED] wrote: I think that, strictly speaking, a URL needs at least the first '/' in the path portion. Have you tried http://www.maintainfit.com/ ? When in doubt, check the RFC: http://www.faqs.org/rfcs/rfc1738.html FYI, there are more recent standards documents than RFC 1738 around the syntax of URLs and URIs ... in particular you'll want to review the following document: http://www.faqs.org/rfcs/rfc3986.html for the latest updates. -- Jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URL pattern for validation
Theres an open bugzilla ticket for this, http://issues.apache.org/bugzilla/show_bug.cgi?id=30686 Niall - Original Message - From: Daniel Watrous [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, February 09, 2005 5:54 PM Subject: URL pattern for validation Hello, I am trying to use the URL validation for a form in my application. It always fails and so I'm not sure that I understand what it expects to see. In my validation.xml I have the following: field property=website depends=url arg0 key=prompt.website/ var var-nameallowallschemes/var-name var-valuetrue/var-value /var var var-nameallow2slashes/var-name var-valuetrue/var-value /var /field I have tried www.maintainfit.com http://www.maintainfit.com niether of which work. Is there some special format that this validation expects. Is there some way to make it accept the above URLs as valid? DW - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]