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

Conflicts between web.xml and web-fragment.xml

 
Paul Statham
Ranch Hand
Posts: 60
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just wondering if someone could resolve a query I have about the rules applied for resolving conflicts. In the Servlets 3.0 spec on Page 74 g. iv. it says

"<welcome-file> declarations are additive"


The term additive is mentioned a few times, what does it mean in this context?
 
Paul Anilprem
Enthuware Software Support
Ranch Hand
Posts: 3819
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An example would explain it better - if web.xml contains index1.html as welcome-file and a web-fragment contains index2.html, the servlet container would look for index1.html and if not found, it would look for index2.html. Thus, they are additive in this case.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic