Hi, You can use a validator rule "url" in validation.xml from validator-rules.xml.
Or You can also use a regular expression as follows in validation.xml:- <global> <constant> <constant-name>URL</constant-name> <constant-value>^http://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?$</constant-value> </constant> </global> -----Original Message----- From: Legolas Woodland [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 29, 2006 2:09 AM To: Struts Users Mailing List Subject: How i can check an string to be a correct web site format? Hi Thank you for reading my post. i want to check an string to see whether it is a correct web site name or not. I know that i should use regular expression , but i do not know how i should do this , can some one help me with this ? Thanks --------------------------------------------------------------------- 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]