Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Custom Tags in Jsp

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • 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
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • 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".
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In "WEB-INF/tlds"
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • 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).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic