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

mock Q on Taglib Directive

 
Reshma Shanbhag
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,

I came across this question on taglib directive on j2eeCertificate.com. The question is ..


Which of the following statements are correct about the taglib directive? [Check all correct answers]

1.) You can declare at most one taglib directive in a JSP page.

2.) The taglib directive in a JSP page declares that the page uses a tag library.

3.) The taglib directive in a JSP page declares that the page uses the servlet API.


4.) The taglib directive can be declared anywhere in the JSP page.


5.) The prefix declared in the taglib directive has to be unique in the context of the page.



I selected Answers 2, 4 and 5. I selected option 4 as taglib is not position sensitive like include.

The j2eeCertificate.com says answers are 2, 5, and the explanation says 'You cannot use the custom tag before you have declared the taglib directive.'



I am not satisfied with the answers from j2eecertificate.com ....

Please help me with the right answers for this questions.


Thanks,
Reshma
 
Vivek Kinra
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is your answer

Sun web page

Thanks...
 
Reshma Shanbhag
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Vivek, that was helpful .


Reshma
 
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!