facebook

JSP tag problems in 3.6.2

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

    Stephen Coy
    Member

    Hi,

    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&gt;
    <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&#8221; 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

    #198767 Reply

    support-michael
    Keymaster

    Hi 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 Support

    #253001 Reply

    cri_tsg
    Member

    I 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.
    Morgan

    #253036 Reply

    cri_tsg
    Member

    I 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.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: JSP tag problems in 3.6.2

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