wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
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
I agree. Here's the link: http://aspose.com/file-tools
subject: taglib
Similar Threads
Passing ArrayList to JSP custom Tag?
Custom tags in Tomcat 3.1 - what's the function of the URI
how to use tags from taglib in jsp
Custom Tag NOT Compiling