This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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: 60732
    
  65

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]
 
Consider Paul's rocket mass heater.
 
subject: Custom Tags and DD
 
Similar Threads
SimpleTagSupport doubt
Marcus Green exam: configuring a tag
mock question regarding classic and simple tags
Clarify my doubt in listeners
WEB.XML is case sensitive??