• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tld(tag-file)

 
Ranjan Pwar
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what should be the <path> in <tag-file> in tld if tag file is put in jar
I put this:/WEB-INF/lib/forTags.jar/tags/miniTags/Header.tag and it is
showing exception:

please help me with this.

One more thing if i give this (above) in my tld in which my simple tags
are also described ,when i am trying to access my tags from jsp it is showing same exception.Why?
How to correct this?
 
Thirugnanam Saravanan
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your tag file ( header.tag) should be inside
META-INF/tags directory or any subdirectory within this directory.
This META-INF directory should be inside your WEB-INF/lib directory.

The <path> in <tag-file> should point from META-INF directory.
(ex - /META-INF/tags/Header.tag).

Try it and let us know once if your problem got resolved.
 
Phillipe Eduardo Lemos
Greenhorn
Posts: 7
C++ Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranjan

You can put in two places.

1) META_INF/tags (or a subdirectory of /META-INF/tags) in a JAR file in WEB-INF/lib.

2) WEB-INF/tags or a subdirectory of web app.

See section JSP 8.4.1 of JSP specification 2.0 (http://jcp.org/aboutJava/communityprocess/final/jsr152/index.html)

Regards
Phillipe Lemos
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic