Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DD Doubt

 
agrah upadhyay
Ranch Hand
Posts: 579
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The folowing is a question from a mock paper on net.
###########################################################################
# Which of these is true about deployment descriptors. Select the one correct answer.

1. The order of elements in deployment descriptor is important. The elements must follow a specific order.
2. The elements of deployment descriptor are case insensitive.
3. The servlet-mapping element, if defined, must be included within the servlet element.
4. The web-app element must include the servlet element.
###########################################################################
The correct option given is (1).
But I do not find any option to be correct.
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

But I do not find any option to be correct.


Me too
 
agrah upadhyay
Ranch Hand
Posts: 579
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the question on javaprepare.com.And explanation given is:
************************************************
# a. The servlet specifications specifies a specific order of deployment descriptor. b is incorrect because elements are case-sensitive. The servlet-mapping element should be included within the element. So c is incorrect. All the elements within the web-app element are optional. So d is incorrect.
************************************************
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

a. The servlet specifications specifies a specific order of deployment descriptor.


May be correct with earlier versions of spec.

With servlet spec 2.4 elements can be of any order in web.xml.
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

You can find more discussion here

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic