This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes taglib Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Servlets
Bookmark "taglib" Watch "taglib" New topic


Cameron Park
Ranch Hand

Joined: Apr 06, 2001
Posts: 371
I was just wondering if the prefix attribute in the taglib directive should be identical to the content of the <shortname></shortname> element in tld, and that is how the container link one particular prefix of library to the actual library?
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

I just tested this:
tld file has: <shortname>util</shortname>
and the prefix attribute in the taglib directive:
prefix="util7" and it works fine.
I guess they can be different. IMO, its just a namespace
you setup with the prefix attribute so the the TagName
is uniquely identified.
- satya

Take a Minute, Donate an Hour, Change a Life
Cameron Park
Ranch Hand

Joined: Apr 06, 2001
Posts: 371
Thank you
Have you checked out Aspose?
subject: taglib
It's not a secret anymore!