Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Order of xml elements in the DD

 
Pallavi Roy
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
 
Siddharth Purandare
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!!!
 
Prabhu Venkatachalam
Ranch Hand
Posts: 502
Java jQuery Spring
  • 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,
 
Sayak Banerjee
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.
 
Abhijeet Mahule
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic