This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Custom Tags and DD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Custom Tags and DD" Watch "Custom Tags and DD" New topic
Author

Custom Tags and DD

Nidhi Sar
Ranch Hand

Joined: Oct 19, 2009
Posts: 252

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.


"A problem well stated is a problem half solved.” - Charles F. Kettering
SCJP 6, OCPJWCD
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63225
    
  69

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Have you checked out Aspose?
 
subject: Custom Tags and DD
 
It's not a secret anymore!