Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How do I validate URL

843838May 16 2006 — edited Aug 16 2007
Hi,

I am developing an application using struts. I want to validate the url entered by the user.

I've tried using the org.apache.commons.validator.UrlValidator that struts provides but i guess it has some bug and doesn't validate all formats of a url.

Can somebody help?

Thanks.

-Abhi.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 13 2007
Added on May 16 2006
5 comments
644 views