• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Taglib declaration.

 
Ranch Hand
Posts: 380
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I found the below question quite ambigious on j2eecertificate.com

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.


Answer given on the site are 2 and 5.

I was aware that the taglib directive can be declared anywhere in the JSP page provided that it is declared before the tag is used.

Is not the above answer(4) ambigious? Are such ambigious statements asked in the exam?? .

Hmm... :roll:
 
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,


I was aware that the taglib directive can be declared anywhere in the JSP page provided that it is declared before the tag is used.



So the option 4 is not fully correct.

I found atleast 2 questions in real exam where I can select more that given option. I chose the best ones, and found OK.

Thanks
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic