For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 6 replies, 4 voices, and was last updated 22 years ago by
snpe.
-
AuthorPosts
-
snpeMemberHello,
I have a problem with code completion for taglib in MyEclipse
(version 3.7 rc2, linux eclipse 3.0M6)
When I set 2.4 web.xml and taglib directive in jsp page code completion work fine, but I want set taglib directive in web.xml
jsp-prelude directive – code completion don’t work for page without taglib directivePlease help
Haris PecoFebruary 7, 2004 at 11:15 am #203030
support-michaelKeymasterHi Haris,
but I want set taglib directive in web.xml
jsp-prelude directive – code completion don’t work for page without taglib directiveI’m not sure I fully follow your problem statement. Can you elaborate on it in greater detail and if needed post a fragments from your web.xml, a jsp file or any other info to help me quickly understand?
February 7, 2004 at 3:27 pm #203036
snpeMemberMy web.xml :
<?xml version=”1.0″ encoding=”UTF-8″?>
<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/web-app_2_4.xsd” version=”2.4″><!– Standard Action Servlet Configuration (with debugging) –>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>6</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet><!– Standard Action Servlet Mapping –>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping><!– The Usual Welcome File List –>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list><!– JSP config example –>
<jsp-config>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<el-ignored>false</el-ignored>
<include-prelude>/WEB-INF/taglibs.jspf</include-prelude>
<include-coda>/WEB-INF/coda.jspf</include-coda>
</jsp-property-group>
<jsp-property-group>
<url-pattern>*.jspf</url-pattern>
<el-ignored>false</el-ignored>
<include-prelude>/WEB-INF/taglibs.jspf</include-prelude>
</jsp-property-group>
</jsp-config>
<context-param>
<param-name>javax.servlet.jsp.jstl.fmt.LocalizationContext</param-name>
<param-value>resources.application</param-value>
</context-param>
</web-app>my taglibs.jspf :
<%@ page contentType=”text/html; charset=UTF-8″ %>
<%@ taglib uri=”http://jakarta.apache.org/struts/tags-html” prefix=”html” %>
<%@ taglib uri=”http://jakarta.apache.org/struts/tags-logic” prefix=”logic” %>
<%@ taglib uri=”http://jakarta.apache.org/struts/tags-bean” prefix=”bean” %>
<%@ taglib uri=”http://jakarta.apache.org/struts/tags-tiles” prefix=”tiles” %>
<%@ taglib uri=”http://struts-menu.sf.net/tag” prefix=”menu” %><%@ taglib prefix=”c” uri=”http://java.sun.com/jsp/jstl/core” %>
<%@ taglib prefix=”x” uri=”http://java.sun.com/jsp/jstl/xml” %>
<%@ taglib prefix=”fmt” uri=”http://java.sun.com/jsp/jstl/fmt” %>
<%@ taglib prefix=”sql” uri=”http://java.sun.com/jsp/jstl/sql” %>
<%@ taglib prefix=”fn” uri=”http://java.sun.com/jsp/jstl/functions” %>Now , if I my jsp start with (content of taglibs.jspf) :
<%@ page contentType=”text/html; charset=UTF-8″ %>
<%@ taglib uri=”http://jakarta.apache.org/struts/tags-html” prefix=”html” %>
<%@ taglib uri=”http://jakarta.apache.org/struts/tags-logic” prefix=”logic” %>
<%@ taglib uri=”http://jakarta.apache.org/struts/tags-bean” prefix=”bean” %>
<%@ taglib uri=”http://jakarta.apache.org/struts/tags-tiles” prefix=”tiles” %>
<%@ taglib uri=”http://struts-menu.sf.net/tag” prefix=”menu” %><%@ taglib prefix=”c” uri=”http://java.sun.com/jsp/jstl/core” %>
<%@ taglib prefix=”x” uri=”http://java.sun.com/jsp/jstl/xml” %>
<%@ taglib prefix=”fmt” uri=”http://java.sun.com/jsp/jstl/fmt” %>
<%@ taglib prefix=”sql” uri=”http://java.sun.com/jsp/jstl/sql” %>
<%@ taglib prefix=”fn” uri=”http://java.sun.com/jsp/jstl/functions” %>code completion work fine for any prefix, but it didn’t need this taglib in every jsp, because container add taglibs from web.xml
I am confuse – code completion sometime work another time not
regards
February 7, 2004 at 4:41 pm #203038
No OperationMemberThis is JSP 2.0.
MyEclipse supports JSP 1.2
NOP
February 9, 2004 at 1:41 pm #203087
snpeMemberIt work if I set taglib directive in jsp file
Myeclipse can find this directive in standard.jar and jstl.jar
regards
February 9, 2004 at 2:31 pm #203092
Riyad KallaMembernote that I’ve also seen people have problems with autocomplete if they define the JSTL taglib entries in the web.xml file (as it isn’t necessary to do so since the JAR file contains the defnitions).
February 10, 2004 at 10:20 am #203151
snpeMemberI don’t define taglib directive in web.xml file
regards
-
AuthorPosts
