Ok. Thanks a lot.

-Pushkar



> -----Original Message-----
> From: Tomas Kramar [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, May 09, 2007 10:51 PM
> To: Struts Users Mailing List
> Subject: Re: Struts 1.3.8 and URL Validation
> 
> 
> It works on a server side - this means that you have to 
> submit the form to be validated. You won't have any 
> javascript popup telling you that you mistyped url, but your 
> validation will fail on server and an error message will be 
> returned. If you set up your struts-config correctly, you can 
> then redirect back to input form and display the message.
> 
> [EMAIL PROTECTED] wrote:
> > 
> >> -----Original Message-----
> >> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
> >> Sent: Wednesday, May 09, 2007 11:26 AM
> >> To: user@struts.apache.org
> >> Subject: Re: Struts 1.3.8 and URL Validation
> >>
> >>
> >> [EMAIL PROTECTED] wrote:
> >>>> There is no JavaScript implementation of the url validation.
> >>>>
> >>>> Niall
> >>> Does it mean that the default "url" validator in validation.xml
> >>> doesn't work?
> >> No, it means that it only works on the server-side; there is
> >> no client 
> >> side validation for this rule type.
> >>
> >> L.
> > 
> > Ok, I'm a bit confused here. Can you please tell me how I 
> can make use 
> > of the "URL" validator in validation.xml?
> > 
> > I was referring to the Struts 1.x FAQs on this page: 
> > http://struts.apache.org/1.x/faqs/validator.html
> > 
> > And the entry on that page for URL validator tells me that I can 
> > declare it
> > as:
> > <field property="custUrl" depends="url">
> >     <arg position="0" key="customer.url"/>
> > </field>
> > 
> > And this is same as what I have done:
> > <field property="vendorURL" depends="url">
> >     <arg key="form.vendor.VendorURL" position="0"/>
> > </field>
> > 
> > So, my question is, if this is not working, what else do I 
> have to do 
> > to get it working?
> > 
> > 
> > Thanks.
> > 
> > -Pushkar.
> > 
> 
> -- 
> Tomas Kramar
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Reply via email to