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 taglib  & id attribute 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 "taglib  & id attribute" Watch "taglib  & id attribute" New topic

taglib & id attribute

Verity smith

Joined: May 27, 2003
Posts: 18
The web.xml file can include a map between URIs and TLD resource paths.The map is described using the taglib element of the Web Application Deployment descriptor in WEB-INF/web.xml. Which of the following statements are true regarding the "taglib" element?
These are the right answers(No Explanation)
1--It can have "id" as its attribute.
2---The sub-elements of "taglib" element are:
can someone please explain why number i is true!
Amer Khan
Ranch Hand

Joined: Apr 05, 2003
Posts: 163
The DTD for taglib element of DD in web.xml is as follows:
<!ELEMENT taglib (taglib-uri,taglib-location )>
<!ATTLIST taglib id ID #IMPLIED>
It tells that the 2 sub-elements of taglib element are: taglib-uri and taglib-location. Also it can have "id" as its attribute.

<i>Dare to dream - everything that exists today,was once a figment of someone's imagination, nobody says tomorrow can't be a figment of your today.</i>
Verity smith

Joined: May 27, 2003
Posts: 18
Thanks once again!
I agree. Here's the link:
subject: taglib & id attribute
It's not a secret anymore!