File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Custom Tags and DD" Watch "Custom Tags and DD" New topic

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
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63844

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] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Custom Tags and DD
It's not a secret anymore!