my dog learned polymorphism*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes mock questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


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

mock questions

Sandhya Lever
Ranch Hand

Joined: Aug 15, 2005
Posts: 90
Which two statements about tag files are true?
1.A file named foo.tag bundled in a jar but not defined in a TLD causes a container translation error.
2.If files foo1.tag and foo2.tag both reside in /WEB-INF/tags/bar the container will consider them part of the same tag library.
3.A file named foo.tag located in /WEB-INF/tags/bar,is recognised as a tag file by the container.

I understand that 3 is true.Which is the other option?

GIven
http://com.example/myServlet.js?num=one&num=two&num=three
which two produce the output "one,two and three"?
1.${param.num[0]} ${param.num[1]} ${param.num[2]}
2.${paramValues[num][0]} ${paramValues[num][1]} ${paramValues[num][2]}
3.${paramValues.num[0]} ${paramValues.num[1]} ${paramValues.num[2]}
4.${paramValues["num"][0]} ${paramValues["num"][1] ${paramValues["num"][2]}

Thanks


SCJP | SCWCD |SCBCD |SCDJWS |SCEA
Sunjeev Shetty
Ranch Hand

Joined: Aug 21, 2005
Posts: 48
1 is right for the first question.
Sandhya Lever
Ranch Hand

Joined: Aug 15, 2005
Posts: 90
Anyone else please respond.I have my exam in two days.Thanks
Vishnu Prakash
Ranch Hand

Joined: Nov 15, 2004
Posts: 1026
second question: options 3,4


Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1 - JSTL Tag Documentation
Amruth Puppala
Ranch Hand

Joined: Jul 14, 2008
Posts: 295
Hi ranchers , old is Gold.
Sorry for replying the old thread.
Please can any one comment why my answeres are incorrect.
I think My answers are :
1st Question : 2,3
2nd question : 1,3, 4
[ August 11, 2008: Message edited by: Chintu sirivennela ]

SCJP 5 |SCWCD 5| Started thinking about Web Services ?
deepa raj
Ranch Hand

Joined: Jul 25, 2008
Posts: 124


Each tag file can be a part of different tlds and may be in same tld also.





param EL implicit object is used to get the single value of request Parameter.

like getParameter(String)

paramVlaues will return multiple values of the request paramter.

like getParameterValues(String)

Correct me if i am wrong.
Amruth Puppala
Ranch Hand

Joined: Jul 14, 2008
Posts: 295
Originally posted by deepa raj:
Each tag file can be a part of different tlds and may be in same tld also.


Thanks Deepa raj, I accepted the 2nd one .

but the 1st one your statement giving dual meaning. Each tag file is part of different TLD or more then one tag fila can be in same TLD? which is true.
Baddy Davay
Greenhorn

Joined: Aug 10, 2008
Posts: 26
1 st question - 1, 3
since if the tag is in the jar file.tld is mandatory.

2nd question - 3,4 as per Deepas comments
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: mock questions