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

Multiple 'web-app' tags per DD ???

 
Neil Mc
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In HFS pg 643 the example Deployment Descriptor has more than one <web-app> tag. Is this allowed ?

I had always just assumed that the <web-app> tag was the root tag of the document. This seems to be backed up by the fact that each web application must have its own web.xml file (in WEB-INF).

Slightly confused...
 
Chengwei Lee
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Neil,

I think you're right on this. <web-app> is the root element & we should only have one of it.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!