URL Validation with Struts validator

2003-03-05 Thread Greg Hess
Hi All,
 
Has anyone implemented URL validation for Struts validator? Can you
share?
 
Thanks,
 
Greg


Re: URL Validation with Struts validator

2003-03-05 Thread David Graham
What is URL validation?

David



From: Greg Hess [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts [EMAIL PROTECTED]
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


_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: URL Validation with Struts validator

2003-03-05 Thread Greg Hess
I want to ensure my users enter a valid URL in a form.

eg: http://www.somesite.com 

Greg

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 05, 2003 4:54 PM
To: [EMAIL PROTECTED]
Subject: Re: URL Validation with Struts validator

What is URL validation?

David



From: Greg Hess [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts [EMAIL PROTECTED]
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


_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


-
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 Validation with Struts validator

2003-03-05 Thread Pani, Gourav
you will have to do a javascript string validation in the same manner as is
done for email address validation and include it in validation-rules.xml.  

-Original Message-
From: Greg Hess [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2003 4:54 PM
To: Struts
Subject: URL Validation with Struts validator


Hi All,
 
Has anyone implemented URL validation for Struts validator? Can you
share?
 
Thanks,
 
Greg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: URL Validation with Struts validator

2003-03-05 Thread Jeff Kyser
You could probably do a less robust version using the
existing mask rule, could you not?
-jeff

On Wednesday, March 5, 2003, at 04:11  PM, Pani, Gourav wrote:

you will have to do a javascript string validation in the same manner 
as is
done for email address validation and include it in 
validation-rules.xml.

-Original Message-
From: Greg Hess [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2003 4:54 PM
To: Struts
Subject: URL Validation with Struts validator
Hi All,

Has anyone implemented URL validation for Struts validator? Can you
share?
Thanks,

Greg

-
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 Validation with Struts validator

2003-03-05 Thread Greg Hess
I was looking at that but the RFC compliant Regex I found needs to split
the string up and examine each segment separately. I think I would have
to build a custom validator rule to handle the URL. I am hoping someone
might have a single Regex I can use with the mask or examples of a
custom rule.

Greg

-Original Message-
From: Jeff Kyser [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 05, 2003 5:26 PM
To: Struts Users Mailing List
Subject: Re: URL Validation with Struts validator

You could probably do a less robust version using the
existing mask rule, could you not?

-jeff

On Wednesday, March 5, 2003, at 04:11  PM, Pani, Gourav wrote:

 you will have to do a javascript string validation in the same manner 
 as is
 done for email address validation and include it in 
 validation-rules.xml.

 -Original Message-
 From: Greg Hess [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 05, 2003 4:54 PM
 To: Struts
 Subject: URL Validation with Struts validator


 Hi All,

 Has anyone implemented URL validation for Struts validator? Can you
 share?

 Thanks,

 Greg

 -
 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]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: URL Validation with Struts validator

2003-03-05 Thread Jeff Kyser
Hey greg,

Perhaps you've seen them, but there are examples of custom validator 
rules in
both 'Programming Jakarta Struts' by Chuck Caveness (Chapter 11) and
Struts in Action' by Test Husted (Chapter 12). Both chapters are 
available online
(www.oreilly.com and www.husted.com). Please forgive my limited 
library, as I
am sure there are examples in some of the other excellent Struts books 
too.

-jeff

On Wednesday, March 5, 2003, at 04:59  PM, Greg Hess wrote:

I was looking at that but the RFC compliant Regex I found needs to 
split
the string up and examine each segment separately. I think I would have
to build a custom validator rule to handle the URL. I am hoping someone
might have a single Regex I can use with the mask or examples of a
custom rule.

Greg

-Original Message-
From: Jeff Kyser [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2003 5:26 PM
To: Struts Users Mailing List
Subject: Re: URL Validation with Struts validator
You could probably do a less robust version using the
existing mask rule, could you not?
-jeff

On Wednesday, March 5, 2003, at 04:11  PM, Pani, Gourav wrote:

you will have to do a javascript string validation in the same manner
as is
done for email address validation and include it in
validation-rules.xml.
-Original Message-
From: Greg Hess [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2003 4:54 PM
To: Struts
Subject: URL Validation with Struts validator
Hi All,

Has anyone implemented URL validation for Struts validator? Can you
share?
Thanks,

Greg

-
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]


-
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 Validation with Struts validator

2003-03-05 Thread Rob Leland
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 w3.org 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 
week.
If you want a quick and dirty method then go to javascript.com 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 [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: URL Validation with Struts validator

2003-03-05 Thread Rob Leland
Greg Hess wrote:

I was looking at that but the RFC compliant Regex I found needs to split
the string up and examine each segment separately. 

Could you send me the URL where I can get the RFC compliant Regex,
or e-mail me directly ?
It would have to make the port optional, and with that I can finish
the Validator extension and submit it a patch to the commons-validator,
and include the Struts part as a 1.2, more likely a 1.3 enhancement to 
struts.

-Rob

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]