File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mock questions

 
Sandhya Lever
Ranch Hand
Posts: 90
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sunjeev Shetty
Ranch Hand
Posts: 48
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1 is right for the first question.
 
Sandhya Lever
Ranch Hand
Posts: 90
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone else please respond.I have my exam in two days.Thanks
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
second question: options 3,4
 
Amruth Puppala
Ranch Hand
Posts: 295
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
deepa raj
Ranch Hand
Posts: 124
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
Posts: 295
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic