• 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

Custom Tags in Jsp

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello every one out there.This post is regarding custom tags in Jsp. Could any one help me regarding the following
1) How to create a jar file which consists of a class file(Tag Handler) and the taglib.tld.(Note- After creating the jar, if we unjar we should get a Meta-Inf directory under which .tld file should be placed.This where i am facing problem. The taglib.tld file is present in the Meta-Inf directory.Instead it consists some .MF file)
2)Where,With Respect to JavaWebServer2.0, should i place the jar & class file.
Please answer the above questions
Thanx in Advance
Kanth
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've never used custom tags myself, but I think they should be in the "WEB-INF" directory rather than "META-INF".
 
Desperado
Posts: 3226
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In "WEB-INF/tlds"
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First of all Thanx for responding. My question was (first one) how to jar the .tld and the class file(tag handler).After .jar file is created when we use jar fx,we should be able to see a Meta-Inf directory under which u should be able to see the taglib.tld file.
I have use the following command
jar -cf mytags.jar taglib.tld HelloWorld.class
But when i unjared the mytags.jar the above said Meta-Inf directory doesn't contain taglib.tld but Manifest.mf file.
I have been asking this because it is given in a tutorial at www.orionserver.com/taglibtut.
So kindly correct me
And Tony has said to place the files in Web-inf directory.But i couldn't find any such directory in JWS2.0. I asked the question with respect to JWS2.0
Clkanth
[This message has been edited by clkanth (edited June 22, 2000).]
[This message has been edited by clkanth (edited June 22, 2000).]
[This message has been edited by clkanth (edited June 22, 2000).]
 
reply
    Bookmark Topic Watch Topic
  • New Topic