Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

doubt in deployment descriptor

 
swapna rao
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the order of elements matters in web.xml?
for example:

within the <servlet> tag order of <servlet-name> and <servlet-class> matters or not and how about the order of top level tags like <servlet>,<error-page> etc.
 
Joshua Antony
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont think within the <servlet> tag order of <servlet-name> and <servlet-class> matters.

However the order matters if you are using Filters
 
Vikas Parikh
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
YES, Order Matters ...

Your web.xml has one schama & it validates against that.
 
Nitin Nigam
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Vikas Parikh:
YES, Order Matters ...

Your web.xml has one schama & it validates against that.


Schema doesnt validates the order as far as i know.
 
swapna rao
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please let me know what is the right answer for this question.
whether the order of elements in web.xml matters or not.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!