struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Yuen" <joe.y...@chisq.com>
Subject RE: url validation
Date Sat, 02 Jun 2007 19:31:17 GMT
I am trying to validate a url. I have the following in my validation.xml file
 
<form name="LinksInputForm" >

<field property="url1" depends ="url" >

<arg0 key="label.url" />

<var>

<var-name>allowallschemes </var-name>

<var-value>true</var-value>

</var>

<var>

<var-name>allow2slashes </var-name>

<var-value>true</var-value>

</var>

<var>

<var-name>schemes</var-name>

<var-value>http,https,telnet,file</var-value>

</var>

<var>

<var-name>nofragments</var-name>

<var-value>true</var-value>

</var>

</field>

</form> 

 

However when I use a url like http://www.apple.com, it fails. What am I doing wrong?

 

Thanks,

-Joe

 



Mime
View raw message