• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tag files inside a JAR.

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

If i have a tag file, header.tag that is in a JAR library I need this structure in my JAR library:

mylibrary.jar
|
META-INF
| ------------ tags/header.tag
|
|------------- mytld.tld

this is my mytld.tld


For use the header tag in another Web app, i need to put mylibrary.jar under /META-INF/lib directory and in my JSPs of my web app I can use the header.tag with this directive:



If my tag not is in a .jar library file. I need to put my header.tag file inside a directory/subdirectory WEB-INF/tags and I use the tag inside a JSP with this directive:


It is correct??

Thanks.
 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
absolutely correct :-)
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

tagdir="/WEB-INF/tags/header.tag"


I think it should be tagdir="/WEB-INF/tags" instead.
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
True, I overlooked that part. You define all tags inside a directory by pointing at the directory itself. So all tag files will be accessible.
 
reply
    Bookmark Topic Watch Topic
  • New Topic