• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Custom TagLib

 
Chad Dalton
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to get a Simple Tag to work Currently here is what I have:
WEB-INF\SimpleTag.tld

WEB-INF\web.xml

WEB-INF\lib\taglib.jar

Source of SimpleTag.class

tagtest.jsp

I have tried to make this as simple as possible. Most of this was copied from the Sun custom tag lib tutorials but I just can't get it to work. The error that I get from Tomcat 4.1.18 is:

Much help is appreciated,
thanks,
--chad
 
Chad Dalton
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bahh,
After changing /simple-tag in tagtest.jsp and web.xml to simple-tag it worked fine! Hope this helps somebody else!
Ok now I assume this is because I am using this custom tag in a sub webapp [localhost/myapp/tagtest.jsp] and the / was starting at doc root. What are the implications of not qualifying the path, if any? Should I change simple-tag to /myapp/simple-tag? Or does this not matter at all?
thanks,
--chad
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic