Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tag files inside a JAR.

 
Yeray Santana Borges
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • 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.
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
absolutely correct :-)
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic