• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URIs in web.xml

 
Harikrishna Gorrepati
Ranch Hand
Posts: 423
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64716
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic