Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic