Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Conflicts between web.xml and web-fragment.xml  RSS feed

 
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 Foreman
Posts: 3985
31
  • 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
Boost this thread!