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]



Reply via email to