• 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

Custom Tags and DD

 
Ranch Hand
Posts: 252
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do Custom Tags need to be declared in the Deployment Descriptor?

Following is a question from Marcus Green's Mock exam:

Which of the following statements are true of custom tags that are created by extending the SimpleTagSupport class.

A. Such tags cannot have a bodycontent type of JSP
B. Such tags cannot have EL expressions in the body
C. Such tags cannot be deployed with attributes
D. Such tags do not need to to be configured in the deployment descriptor


The correct answer given as A only. I thought it would be A & D, since the tags would be configured in the tld file, not the DD.

 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Depends upon the version of JSP. After JSP 2.0, TLDs do not need to be declared in the deployment descriptor. Tags themselves, of course, are always declared in the TLD.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic