• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

Conflicts between web.xml and web-fragment.xml

Ranch Hand
Posts: 60
  • 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?
Enthuware Software Support
Posts: 4428
  • 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.

WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic