This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Servlets and the fly likes URIs in web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "URIs in web.xml" Watch "URIs in web.xml" New topic
Author

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="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
</web-app>

[EDIT: added descriptive subject]


OCPJP 6.0-81% | Preparing for OCWCD
http://www.certpal.com/blogs/cert-articles | http://sites.google.com/site/mostlyjava/scwcd |
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56554
    
  14

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 google.com in it becaue you don't own that domain name. So therefore, your URIs and Google's URIs can never collide.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: URIs in web.xml
 
Similar Threads
Unable to find taglib in project--please help
problem creating a URI for a tld in the web.xml
JSTL not working
custom tag handler
JSTL1.2 -Unknown element(deferred-value)