facebook

tld code assist [Enhancement]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #208192 Reply

    snpe
    Member

    I have a problem with tld code assist :

    When I add tld tag directive in page it work fine, but I have all tags directive in prelude file (web.xml 2.4 specification) like this :
    <jsp-config>
    <jsp-property-group>
    <display-name>snpe</display-name>
    <url-pattern>*.jsp</url-pattern>
    <el-ignored>false</el-ignored>
    <scripting-invalid>false</scripting-invalid>
    <is-xml>false</is-xml>
    <include-prelude>/template/prelude.jspf</include-prelude>
    <include-coda>/template/coda.jspf</include-coda>
    </jsp-property-group>
    </jsp-config>
    and prelude.jspf like :

    <%@ taglib uri=”http://java.sun.com/jsp/jstl/core&#8221; prefix=”c” %>
    <%@ taglib uri=”http://java.sun.com/jsp/jstl/fmt&#8221; prefix=”fmt” %>
    <%@ taglib uri=”http://java.sun.com/jsp/jstl/sql&#8221; prefix=”sql” %>
    <%@ taglib prefix=”f” uri=”http://java.sun.com/jsf/core&#8221; %>
    <%@ taglib prefix=”h” uri=”http://java.sun.com/jsf/html&#8221; %>
    <%@ taglib uri=”http://myfaces.sourceforge.net/tld/myfaces_ext_0_9.tld&#8221; prefix=”x”%>

    myeclipse don’t see that I have added tld tag directive

    I don’t want add tld directive in every jsp file

    Please help

    regards
    Can You make that myeclipse find all tld directive from web.xml

    #208194 Reply

    Riyad Kalla
    Member

    snpe,
    How are you including the prelude.jspf? I am working on a project right now that I do something almost identical (Servlet 2.3 spec though) and I have to use a static include <%@ include file=”taglibs.jspf” %> and MyEclipse finds everything fine.

    #208197 Reply

    snpe
    Member

    I use tomcat 5 (2.4 specification) and I send part of web.xml for prelude :
    <?xml version=”1.0″?>
    <web-app xmlns=”http://java.sun.com/xml/ns/j2ee&#8221;
    xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221;
    xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd&#8221;
    version=”2.4″>

    <jsp-config>
    <jsp-property-group>
    <display-name>snpe</display-name>
    <url-pattern>*.jsp</url-pattern>
    <el-ignored>false</el-ignored>
    <scripting-invalid>false</scripting-invalid>
    <is-xml>false</is-xml>
    <include-prelude>/template/prelude.jspf</include-prelude>
    <include-coda>/template/coda.jspf</include-coda>
    </jsp-property-group>
    </jsp-config>

    Tomcat 5 include in every page /template/prelude.jspf at the begining and
    /template/coda.jspf at the end.

    It work fine with tomcat 5.0.24 (and >5.0.18; I don’t try lower version)

    regards

    #208202 Reply

    Riyad Kalla
    Member

    Ohh I’m sorry I missed that detail previously (I’m not versed in 2.4 spec yet). This looks like a enhancement request, I’ll pass it along.

    #208239 Reply

    snpe
    Member

    What about code assist for tlds ?
    I don’t know how Myeclipse find tld libraries, but can You set that we add code assist libraries or myeclipse find all tld in WEB-INF/lib directory ?

    regards

    #208250 Reply

    Riyad Kalla
    Member

    Code assist is *probably* not working because hwile you are editing the JSP pages, it is not finding the include of your prelude fragment. If you added a static include <%@ include %> that would fix the problem, but negate the Servlet 2.4 spec work you have done in your web.xml file.

    We don’t support the J2EE 1.4 spec yet, so I’m not surprised this doesn’t work.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: tld code assist [Enhancement]

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