- This topic has 5 replies, 2 voices, and was last updated 20 years, 5 months ago by Riyad Kalla.
-
AuthorPosts
-
snpeMemberI 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” prefix=”c” %>
<%@ taglib uri=”http://java.sun.com/jsp/jstl/fmt” prefix=”fmt” %>
<%@ taglib uri=”http://java.sun.com/jsp/jstl/sql” prefix=”sql” %>
<%@ taglib prefix=”f” uri=”http://java.sun.com/jsf/core” %>
<%@ taglib prefix=”h” uri=”http://java.sun.com/jsf/html” %>
<%@ taglib uri=”http://myfaces.sourceforge.net/tld/myfaces_ext_0_9.tld” 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
Riyad KallaMembersnpe,
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.
snpeMemberI 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”
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd”
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
Riyad KallaMemberOhh 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.
snpeMemberWhat 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
Riyad KallaMemberCode 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.
-
AuthorPosts