• 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 ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

tag files in eclipse

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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" %>
<html>
<body>
This is included tag file:<br><br>
<mytag:MixMe/>
<br>
This is again first JSP.
</body>
</html>

my tag file is very simple:

I am the included Tag..<br>
<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...

 
Marshal
Posts: 67313
170
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.
 
Author
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.
 
That's a very big dog. I think I want to go home now and hug this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!