facebook

problem with jsp editor

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #263478 Reply

    Paolo Denti
    Member

    i really cannot understand if the problem is with my code or with myeclipse (5.1 + eclipse 3.2.1)

    in the following code for example (but in every page with code nested if tags like in this case)

    
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    ...
    <a href="<c:url value="/test.htm"/>"<c:if test="${param.currentLeft == 'show'}"> class="current"</c:if>>txt txt txt</a></li>
    

    i get the following warning: Undefined attribute name (<c:if test=”${param.currentLeft == ‘show’}”> class=”current”</c:if>)”

    the problem (if it is really a myeclipse problem …) is not blocking but it is very annoying
    any idea ?
    thanks

    #263497 Reply

    CGIFederal
    Member

    You could move your c:if tag to inside the class=”” attribute.

    <a href=”<c:url value=”/test.htm”/>” class=”<c:if test=”${param.currentLeft == ‘show’}”>current</c:if>”>txt txt txt</a></li>

    #263498 Reply

    Paolo Denti
    Member

    @Mike.Kearns wrote:

    You could move your c:if tag to inside the class=”” attribute.

    <a href=”<c:url value=”/test.htm”/>” class=”<c:if test=”${param.currentLeft == ‘show’}”>current</c:if>”>txt txt txt</a></li>

    thanks !
    your tip in fact eliminates the warning even if the generated html is different (same visual result but bigger than the original)
    <a href=”/test.htm” class=””>txt txt txt</a>
    vs
    <a href=”/test.htm”>txt txt txt</a>

    #263499 Reply

    Paolo Denti
    Member

    btw i think that the problem lies in the myeclipse “html validator”

    #263519 Reply

    Paolo Denti
    Member

    any news from the myeclipse team ?

    #263632 Reply

    Greg
    Member

    The HTML validator is from the WTP platform. However, with MyEclipse we give you the ability to disable the HTML validation for that particular file if it is causing a problem. Just right-click the project and go to MyEclipse > Validation > Excluded Resources and you can select your JSP file.

    #263639 Reply

    Paolo Denti
    Member

    @support-greg wrote:

    The HTML validator is from the WTP platform.

    thx Greg, i already did it but it is not a nice solution if i want to develop an xhtml compliant webapp.
    btw i understand now that it not a myeclipse problem and i will try to submit a bug to the eclipse team (it still looks a bug to me …)

    #263745 Reply

    jieryn
    Member

    If you check this thread it sure seems like an acknowledgement that it is a bug with MyEclipse. Like the original poster, I don’t feel disabling validation on literally every single .jsp resource is viable; Validation has saved me in the past, I don’t want to disable it.

    Any projection for when this will be fixed? Thanks! 🙂

    #263747 Reply

    Riyad Kalla
    Member

    No ETA for a fix just yet, but the JSP lexer has some TODO items for our 5.5 and 6.0 releases to make it smarter about allowable JSP constructs (possibly the most complex language ever 🙁

    #263809 Reply

    Paolo Denti
    Member

    @jieryn wrote:

    If you check this thread it sure seems like an acknowledgement that it is a bug with MyEclipse.

    therefore i posted a wrong bug to the bugzilla eclipse team ?

    #263810 Reply

    Riyad Kalla
    Member

    paolo,
    Both places are valid. It depends which team tackles it first. If we fix the bug first we’ll commit the fix back to the WTP team and visa versa.

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: problem with jsp editor

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