• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Custom TagLib

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic