facebook

[5.01] JSP editor doesn’t recognize usage of .tag files

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #257065 Reply

    henk
    Member

    I have several .tag files to define custom tags. In my JSP pages I import these using:

    
    <%@ taglib tagdir="/WEB-INF/tags" prefix="ct" %>
    

    If I have a file /WEB-INF/tags/test.tag, then I use this in my .jsp file in the following way:

    
    <ct:test/>
    

    The MyEclipse JSP editor flags this as warning, saying unknow tag (ct:test). However, the page runs flawlessly on Tomcat 5.5.17. Therefor it must be the JSP editor which either doesn’t look at the tagdir attribute in the taglib tag, or doesn’t know how to resolve it. I tried removing the leading slash before the tagdir path, but this doesn’t help.

    #257197

    Riyad Kalla
    Member

    You are correct, we don’t have tagdir support yet. If you are writing JSP Documents (jspx) you can try something like this instead:

    
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html">
        <jsp:directive.page contentType="text/html; charset=UTF-8" />
        <jsp:text>
            <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ]]>
        </jsp:text>
    
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: [5.01] JSP editor doesn’t recognize usage of .tag files

You must be logged in to post in the forum log in