wood burning stoves 2.0
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Difference Between URI and URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Difference Between URI and URL " Watch "Difference Between URI and URL " New topic

Difference Between URI and URL

Arul Prasad
Ranch Hand

Joined: Jan 20, 2005
Posts: 57
can anyone explain be about the difference between the URL and URI . in web.xml we are saying for the tld like <taglib-uri> , why cant WE specify it as <taglib-url> ..?

With Regards<br />Arul
Manish Shah

Joined: Aug 24, 2006
Posts: 20

URI is the acronym for Uniform Resource Identifier where as URL is for Uniform Resource Locator.

URI is something which looks like URL, but it acts like an identifier for the particular resource where as URL is the actual address or location of the resource.

URI may not point to any resource, where as URL always point to specific resource.

So in taglibs when we want to associate particular prefix with the tag library, there is need to inform the container to look at particular id which should be unique.

That is why it is used as taglib-uri.

SCJP 1.2, SCWCD 1.4
I agree. Here's the link: http://aspose.com/file-tools
subject: Difference Between URI and URL
It's not a secret anymore!