struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Leland <>
Subject Re: URL Validation with Struts validator
Date Thu, 06 Mar 2003 05:22:11 GMT
I started coding a URL client/server side validation 2 weeks ago,
that I hope to contribute to the Validation framework.
I put it on hold while getting other work finished before going on vacation.
I modeled it on the email validation items, and used the definition
of  A URI to write the validation code. If all elements are there my code
can tell if it is a valid URL, however I can't figure out when testing
for a URL regular expression pattern how to make some items optional,
it may not be possible, any Perl/PHP people out there ?
The Unit tests I created are extensive and test all possible 
combinations, but
take almost a 2 minutes to complete :( !

I have just come back from vacation and hope to have it finished by next 
If you want a quick and dirty method then go to and look 
for some
of their URL validations items, turning them into Java is easy to achieve
using the ORO package.

David Graham wrote:

> What is URL validation?
> David
>> From: "Greg Hess" <>
>> Reply-To: "Struts Users Mailing List" <>
>> To: "Struts" <>
>> Subject: URL Validation with Struts validator
>> Date: Wed, 5 Mar 2003 16:53:36 -0500
>> Hi All,
>> Has anyone implemented URL validation for Struts validator? Can you
>> share?
>> Thanks,
>> Greg

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message