This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes DD Doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "DD Doubt" Watch "DD Doubt" New topic
Author

DD Doubt

agrah upadhyay
Ranch Hand

Joined: Sep 01, 2005
Posts: 579
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.


<i>--Agrah Upadhyay--</i><br />Final Year B.Tech SCJP,SCWCD,SCBCD <br /> <br /><b>Now since the real test for any choice is having to make the same choice again,knowing full well what it might cost.</b>-Oracle
Vishnu Prakash
Ranch Hand

Joined: Nov 15, 2004
Posts: 1026

But I do not find any option to be correct.


Me too


Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1 - JSTL Tag Documentation
agrah upadhyay
Ranch Hand

Joined: Sep 01, 2005
Posts: 579
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

Joined: Nov 15, 2004
Posts: 1026

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

Joined: Dec 04, 2004
Posts: 950
Hi,

You can find more discussion here

Thanks


Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DD Doubt
 
Similar Threads
Problems with Deployment Descriptor
doubt regarding mock exam question
Regarding DD
Unwanted error messages on Tomcat 4.1 Catalina Window
question on order of elements in web.xml