File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes URIs in web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "URIs in web.xml" Watch "URIs in web.xml" New topic

URIs in web.xml

Harikrishna Gorrepati
Ranch Hand

Joined: Sep 23, 2010
Posts: 422
Hi, In general, we define the following in web.xml, What is the meaning of it ? Even though I am not connected to internet, I am able to use this file.

<web-app id="WebApp_ID" version="2.4"
xmlns="" xmlns:xsi=""

[EDIT: added descriptive subject]

OCPJP 6.0-81% | Preparing for OCWCD | |
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60766

You are confusing URI with URL. A URI is just an identifier. Just because it looks like a URL doesn't mean it is a URL that locates a resource. It's just a name.

URI names could just as well have been something like "asdkjfadsjfgjasdhgfkjhdsagfjkhgdsajfha" or "Fred", but the format of a URL was chosen because by including a domain name in the URI, it's easy to avoid collisions. For example, you should never create a URI with in it becaue you don't own that domain name. So therefore, your URIs and Google's URIs can never collide.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: URIs in web.xml
Similar Threads
custom tag handler
JSTL not working
problem creating a URI for a tld in the web.xml
Unable to find taglib in project--please help
JSTL1.2 -Unknown element(deferred-value)