• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Order of xml elements in the DD

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Please let me know if the order of xml elements is fixed in the deployment descriptor.

Best Regards,
Pallavi
 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Refer this:

http://www.johntopley.com/oldblog/kb/java/0039.html

Cheers!!!
 
Ranch Hand
Posts: 502
jQuery Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ordering is not required and you will not get any question in exam about ordering.

hth,
 
Ranch Hand
Posts: 292
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's history my friend...wake up....things have changed with Servlet Specification 2.4 ....here's somethin' from the spec. (page 106)


The sub elements under web-app can be in an arbitrary order in this version of the specification.

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The <listener> elements should always appear before the <servlet> elements in the web.xml file. So in a way there's some restriction regarding the order of DD elements.


Stay connected, Remain beautiful,
Abhijeet Mahule,
SCJP 1.4, SCWCD 1.4
[ December 18, 2006: Message edited by: Abhijeet Mahule ]
 
Sayak Banerjee
Ranch Hand
Posts: 292
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

The <listener> elements should always appear before the <servlet> elements in the web.xml file. So in a way there's some restriction regarding the order of DD elements.



That's not true....where did you find it anyways?
 
Abhijeet Mahule
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes Sayak, you're right...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!