Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

tag files in eclipse

Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to incluse a tag file into another jsp using a taglib directive.
I placed the tag file under WEB-INF/tags directory. I included the tag file into my JSP as

<%@ taglib prefix="mytag" tagdir="WEB-INF/tags" %>
This is included tag file:<br><br>
This is again first JSP.

my tag file is very simple:

I am the included Tag..<br>

But when I run the JSP , I get an exception like:

org.apache.jasper.JasperException: Tag file directory WEB-INF/tags does not start with "/WEB-INF/tags"

I wonder is there any problem with eclipse & tag files support.
Please help me out...

Posts: 67399
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to ask IDE questions in the IDEs forum. I have moved this post there for you.
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using an absolute path. We're using custom tags, both Java- and JSP-based, with Eclipse with no issues.
Curse your sudden but inevitable betrayal! And this tiny ad too!
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic