This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates 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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "taglib" Watch "taglib" New topic
Author

taglib

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?
Thanks.
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

Cameron:
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.
HTH.
regds.
- satya

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Cameron Park
Ranch Hand

Joined: Apr 06, 2001
Posts: 371
Thank you
 
jQuery in Action, 2nd edition
 
subject: taglib