This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web.xml namespace info how much imp ?

 
Vishal Mungi
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
I found out that the following :

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"
version="2.4"

is a must to write in web.xml (doesnt provide any clue otherwise &
does'nt run my servlets).
Shouldnt the container(in my case tomcat)raise objections on using a descriptor w/o specific namespace ?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not an expert in this department but I believe that the namespace informs the container as to which version of the servlet spec you're implementing.
I know, for example, that an app with a 2.3 namespace will run under the latest version of Tomcat but EL expressions will be ignored (printed verbatim).
[ June 28, 2006: Message edited by: Ben Souther ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By the way...
I have no idea what this subject line means:
Topic: web.xml namespace info how much imp ?
 
Vishal Mungi
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That reads - how much important.
btw your simple servlet examples are very useful.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Vishal Mungi:
That reads - how much important.
btw your simple servlet examples are very useful.


Thank you.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64967
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Vishal Mungi:
That reads - how much important.


No. It reads "how much imp"

Please take the time to completely spell out words. It is in your own interest to avoid the kind of confusion that you have caused.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic