You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by pu...@netsol.co.in on 2007/05/09 05:48:11 UTC

Struts 1.3.8 and URL Validation

Hi,

I'm using Struts version 1.3.8 and I intend to use URL validation for a
field using the  validation.xml file. But, when I declare the field in
validation.xml, it does not validate the field to check whether the URL is a
valid one, meaning that it takes any input that I give in that textbox.
Here's the entry from my validation.xml file:

<field property="vendorURL" depends="url">
	<arg key="form.vendor.VendorURL" position="0"/>
</field>

Also, other validations like "required", "email", "maxlength"..etc are
working fine on this form.

Is there anything else that I need to do for having client-side URL
validation besides declaring in validation.xml?

Thanks.

-Pushkar.

Re: Struts 1.3.8 and URL Validation

Posted by Niall Pemberton <ni...@gmail.com>.
On 5/9/07, pushkar.p@netsol.co.in <pu...@netsol.co.in> wrote:
> Hi,
>
> I'm using Struts version 1.3.8 and I intend to use URL validation for a
> field using the  validation.xml file. But, when I declare the field in
> validation.xml, it does not validate the field to check whether the URL is a
> valid one, meaning that it takes any input that I give in that textbox.
> Here's the entry from my validation.xml file:
>
> <field property="vendorURL" depends="url">
>         <arg key="form.vendor.VendorURL" position="0"/>
> </field>
>
> Also, other validations like "required", "email", "maxlength"..etc are
> working fine on this form.
>
> Is there anything else that I need to do for having client-side URL
> validation besides declaring in validation.xml?

There is no JavaScript implementation of the url validation.

Niall

> Thanks.
>
> -Pushkar.
>

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