In the file struts-config.xml
Do you have ??
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames"
value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
</plug-in>
-----Mensaje original-----
De: Ben [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 10 de noviembre de 2005 8:14
Para: Struts
Asunto: Validate url
Hi
I followed the Struts User's Guide to setup the form so that it
validates the URL when the user submits the form. I use the following
validation settings for the URL field.
<field property="url" depends="url">
<arg0 key="company.url"/>
<var>
<var-name>schemes</var-name>
<var-value>http,https</var-value>
</var>
</field>
No matter what I put in the field, it always return false, here are some
of the urls I used:
http://www.yahoo.com/
http://localhost/
https://www.amazon.com/exec/dsfasdf
Please let me know how to use Struts url validation.
Thanks,
Ben
---------------------------------------------------------------------
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]