Validation Problem with depends=URL
Hey, i am trying to validate the input of a form bean containing various fields. One of the fields requires the entry of an URL. The field-tag in my validation.xml looks like that: field property=otherProperty(webURL) depends=required,url msg name=required key= errors.required/ msg name=url key=errors.url/ arg key= webURL position=0/ var var-nameallowallschemes/var-name var-valuefalse/var-value /var var var-nameschemes/var-name var-valuehttp/var-value /var /field Validation works just fine with all the other fields, but not with this one. When I leave it empty, I get an error-msg, that's okay, when i enter an invalid url I also get an error-msg, still okay. but when I enter a valid url (example: http://www.myurl.com/ http://www.myurl.com) I also get the message that this is an invalid url, which is not okay, cause as long as I am not able to enter valid urls my form bean will never parse. What am I doing wrong? Why is struts telling me that every valid url I enter is invalid? Best regards Franck
Re: Validation Problem with depends=URL
Franck Wiegner wrote: invalid url I also get an error-msg, still okay. but when I enter a valid url (example: http://www.myurl.com/ http://www.myurl.com) I also get the message that this is an invalid url, which is not okay, cause as long as I am not able to enter valid urls my form bean will never parse. What happens if you just enter http://www.myurl.com; (without the quotes, of course)? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Validation Problem with depends=URL
hi, as franck is in my team, i can answer this question on behalf of franck. i think there went something wrong with the formatting of his email, of course he types in http://www.myurl.com; (yes, without the quotes), but whatever we enter, we get a validation error that this is not a valid url. as far as i've seen it, it doesn't matter which scheme we use, e.g. an ftp url also fails. tested on two different machines, which are almost 1000km away from each other, so no chance that the bad spirit of one machine reaches the other one ;-) kr, guenther -- Günther Wieser creative-it Guglgasse 6/1/11/1 A-1110 Wien Austria http://www.creative-it.com -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 04, 2005 4:35 PM To: Struts Users Mailing List Subject: Re: Validation Problem with depends=URL Franck Wiegner wrote: invalid url I also get an error-msg, still okay. but when I enter a valid url (example: http://www.myurl.com/ http://www.myurl.com) I also get the message that this is an invalid url, which is not okay, cause as long as I am not able to enter valid urls my form bean will never parse. What happens if you just enter http://www.myurl.com; (without the quotes, of course)? Dave - 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: Validation Problem with depends=URL
This is a bug in validator: http://issues.apache.org/bugzilla/show_bug.cgi?id=30686 Niall - Original Message - From: Günther Wieser [EMAIL PROTECTED] Sent: Wednesday, May 04, 2005 7:46 PM as franck is in my team, i can answer this question on behalf of franck. i think there went something wrong with the formatting of his email, of course he types in http://www.myurl.com; (yes, without the quotes), but whatever we enter, we get a validation error that this is not a valid url. as far as i've seen it, it doesn't matter which scheme we use, e.g. an ftp url also fails. tested on two different machines, which are almost 1000km away from each other, so no chance that the bad spirit of one machine reaches the other one ;-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Validation Problem with depends=URL
Will this be in 1.2.7? -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 04, 2005 3:13 PM To: Struts Users Mailing List Subject: Re: Validation Problem with depends=URL This is a bug in validator: http://issues.apache.org/bugzilla/show_bug.cgi?id=30686 Niall - Original Message - From: Günther Wieser [EMAIL PROTECTED] Sent: Wednesday, May 04, 2005 7:46 PM as franck is in my team, i can answer this question on behalf of franck. i think there went something wrong with the formatting of his email, of course he types in http://www.myurl.com; (yes, without the quotes), but whatever we enter, we get a validation error that this is not a valid url. as far as i've seen it, it doesn't matter which scheme we use, e.g. an ftp url also fails. tested on two different machines, which are almost 1000km away from each other, so no chance that the bad spirit of one machine reaches the other one ;-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp Dohme or MSD and in Japan, as Banyu) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Validation Problem with depends=URL
No, it needs to be fixed in Validator and Validator to be released first - once Validator is released we can then change Struts to depend on the new validator version and then ship it in a release. Niall - Original Message - From: Benedict, Paul C [EMAIL PROTECTED] To: 'Struts Users Mailing List' user@struts.apache.org Sent: Wednesday, May 04, 2005 8:15 PM Subject: RE: Validation Problem with depends=URL Will this be in 1.2.7? -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 04, 2005 3:13 PM To: Struts Users Mailing List Subject: Re: Validation Problem with depends=URL This is a bug in validator: http://issues.apache.org/bugzilla/show_bug.cgi?id=30686 Niall - Original Message - From: Günther Wieser [EMAIL PROTECTED] Sent: Wednesday, May 04, 2005 7:46 PM as franck is in my team, i can answer this question on behalf of franck. i think there went something wrong with the formatting of his email, of course he types in http://www.myurl.com; (yes, without the quotes), but whatever we enter, we get a validation error that this is not a valid url. as far as i've seen it, it doesn't matter which scheme we use, e.g. an ftp url also fails. tested on two different machines, which are almost 1000km away from each other, so no chance that the bad spirit of one machine reaches the other one ;-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp Dohme or MSD and in Japan, as Banyu) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. -- - 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: Validation Problem with depends=URL
I hope Validator 1.1.5 comes out soon then! -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 04, 2005 3:53 PM To: Struts Users Mailing List Subject: Re: Validation Problem with depends=URL No, it needs to be fixed in Validator and Validator to be released first - once Validator is released we can then change Struts to depend on the new validator version and then ship it in a release. Niall - Original Message - From: Benedict, Paul C [EMAIL PROTECTED] To: 'Struts Users Mailing List' user@struts.apache.org Sent: Wednesday, May 04, 2005 8:15 PM Subject: RE: Validation Problem with depends=URL Will this be in 1.2.7? -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 04, 2005 3:13 PM To: Struts Users Mailing List Subject: Re: Validation Problem with depends=URL This is a bug in validator: http://issues.apache.org/bugzilla/show_bug.cgi?id=30686 Niall - Original Message - From: Günther Wieser [EMAIL PROTECTED] Sent: Wednesday, May 04, 2005 7:46 PM as franck is in my team, i can answer this question on behalf of franck. i think there went something wrong with the formatting of his email, of course he types in http://www.myurl.com; (yes, without the quotes), but whatever we enter, we get a validation error that this is not a valid url. as far as i've seen it, it doesn't matter which scheme we use, e.g. an ftp url also fails. tested on two different machines, which are almost 1000km away from each other, so no chance that the bad spirit of one machine reaches the other one ;-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp Dohme or MSD and in Japan, as Banyu) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. -- - 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] -- Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp Dohme or MSD and in Japan, as Banyu) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]