• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

DD elements

 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the order of elements in DD important?I guess it was there only for servlet 2.3.Please let me know
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe as long as your order did not break any rules(DTD or schema defined in specs or used by your app server) it should not be a problem......

-
Shivender
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The order is not relevant anymore in servlet 2.4. Meaning that you won't get any xml parsing errors for that.
However, some tags are used according to the order in which they are declared in the deployment descriptor. That's when the order as some significance. I can think of the way filters are used, or the way listeners are instanciated.
[ July 01, 2007: Message edited by: Satou kurinosuke ]
 
Ranch Hand
Posts: 10192
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The order does matter with the 2.3 specs of servlets. But as Satou pointed out , the order of the inner elements like for filters, listeners does matter.
 
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The order is not relevant anymore in servlet 2.4. But this is true only for the top elements which are come under directly web-app elements. For other sub-elements the order is still important.

You can place <servlet> <filter> <listener> element in any order in the web.xml. But , for example, the subelements of <servlet> element must be in order.

Though for some containers like tomcat, it is not error, by the servlet 2.4 specification the sub-elements must be in order.

Thanks
 
Hey, check out my mega multi devastator cannon. It's wicked. It makes this tiny ad look weak:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic