- This topic has 3 replies, 3 voices, and was last updated 19 years ago by
cri_tsg.
-
AuthorPosts
-
Stephen CoyMemberHi,
I am having a problem getting the JSP editor to recognize custom tags in JSPs.
As an example, I have a page that is trying to use the core JSTL tags.
My WEB-INF/lib directory contains:
jstl-1.0.2.jar
standard-1.0.2.jar
The TLDs are in standard-1.0.2.jar.
My WEB-INF/web.xml has the following taglib directives:<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/lib/standard-1.0.2.jar</taglib-location>
</taglib>and finally, my page content of interest:
…
<%@ taglib uri=”http://java.sun.com/jstl/core” prefix=”c” %>
…
<a href=”<c:url value=’/login/password.jsp?goHomeOnCancel=true’/>”> …The MyEclipse JSP editor is not recognising any of the “c” prefixed tags. I am having similar problems with struts tags as well.
Environment:
Eclipse 3.0M3/MyEclipseIDE 3.6.2
MacOSX 10.2.8
java version “1.4.1_01”
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-69.1)
Java HotSpot(TM) Client VM (build 1.4.1_01-24, mixed mode)Thanks,
Steve Coy
September 25, 2003 at 9:30 pm #198767
support-michaelKeymasterHi Steve,
I have entered an issue on this topic in our tracking system. If we can replicate this problem (should be easy) we’ll have a fix out in the maintenance release planned for late next week.
Michael
MyEclipse SupportJune 2, 2006 at 8:37 am #253001
cri_tsgMemberI know this is an old thread, but I’m having a similar issue. I run MyEclipse 4.1.1 GA and Eclipse 3.1.1. The JSP editor underlines nearly all tags with a yellow wavy line indicating errors such as “Unknown tag html:form” and “Unknown tag c:if”. Obviously, I’m using core tags as well as Struts tags.
Do I need to copy jar’s and tld’s somewhere specific for the editor to recognize them?
Thanks.
MorganJune 2, 2006 at 1:47 pm #253036
cri_tsgMemberI got it. In short, I added standard.jar to the build path. Apparently, the project did not even need to be a WebProject to validate the XML.
-
AuthorPosts