Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Deployment Descriptor element order  RSS feed

 
Tyronne Fernando
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I was just wondering the elements in the Deployment Descriptor should be in a particular order or not? For example the servlet elements should be defined first. Is there a DTD for it? Thanks in advance.

Cheers,
Tyronne
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Servlets 2.4 use an XML Schema. The order of "outer tags" like servelts or servlet-mapping is not important. It may influence the way the container will use them though (like listener tags). You'll find the full XML Schema in the Servlets specification.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!