facebook

JSP editor still don’t recognise the tags?

  1. MyEclipse IDE
  2.  > 
  3. Feature Requests
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #270813 Reply

    suyc9999
    Member

    After adding JSTL capability to my web project, I would expect the JSP editor to recognise the JSTL tags. But instead, the editor still fails to do so. All the JSTL tags are underlined with a yellow line.

    Have I missed anything? I am using MyEclipse latest (just downloaded today) with eclipse 3.2.2. The JSP is a simple one that simply display all the query parameters:

    <%@ taglib uri=”http://java.sun.com/jstl/core&#8221; prefix=”c” %>

    <c:catch var=”error”>

    Request URL = <c:out value=”{request.requestURL}”/>
    <p>
    <ul>
    <%– For every String[] item of paramValues… –%>
    <c:forEach var=’parameter’ items=’${paramValues}’>
    <ul>
    <%– Show the key, which is the request parameter name –%>
    <li><b><c:out value=’${parameter.key}’/></b>:</li>
    <%– Iterate over the values — a String[] —
    associated with this request parameter –%>
    <c:forEach var=’value’ items=’${parameter.value}’>
    <%– Show the String value –%>
    <c:out value=’${value}’/>
    </c:forEach>
    </ul>
    </c:forEach>
    </ul>

    </c:catch>
    <c:if test = “${not empty error}”>
    <jsp:include page=”/jsp/error_handling.jsp”/>
    </c:if>

    Thanks

    Charles

    #270975 Reply

    Riyad Kalla
    Member

    Charles your URI is most likely wrong. For JSTl 1.1 (which is what I suppose you added) the URI needs to be:
    http://java.sun.com/jsp/jstl/core

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: JSP editor still don’t recognise the tags?

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