struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Watrous" <dwatr...@hotmail.com>
Subject Re: URL pattern for validation
Date Wed, 09 Feb 2005 20:06:04 GMT
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" <jbeal@webmedx.com>
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 <jbeal@webmedx.com> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message