I assume you are using form to submit the string. Are you using commons Validator framework ?? If yes, then in validator-rules.xml , there is validation of type "url". Use that. or you can use mask if you want to customize it.
Jitendra -----Original Message----- From: Legolas Woodland [mailto:[EMAIL PROTECTED] Sent: 29 March, 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]