facebook

TEI VariableInfo Processing in MyEclipse JSP Editor

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #268764 Reply

    miamidot
    Member

    Refer to Eclipse bugzilla issue
    https://bugs.eclipse.org/bugs/show_bug.cgi?id=178443

    A few Eclipse bugzilla report issues have been consolidated to Eclipse issue 178443. Final response to the bug is – it has been fixed in WST/JST 1.5.4M

    MyEclipse JSP editing succumbs to this bug too. What are the plans for MyEclipse to resolve this bug too?

    To provide an illustration of this bug, I show a snapshot of a JSP being edited in MyEclipse JSP Editor (or Visual Designer).

    
    <%@taglib uri="/WEB-INF/text-taglib.tld" prefix="text"%> 
    
    <text:text id="xbuf" scope="request">
    <status>
     <cell id="blah"/>
    </status>
    </text:text>
    
    <%
    StringBuilder bbuf
        = ClearXBuf==null
        ? new StringBuilder(xbuf)
        : null
        ;
    %>
    

    text:text is a JSP custom tag I wrote. I have been using this tag for the past five years in Netbeans JSP Editor without any problems – that is, the custom tag has no bugs. The tag allows CDATA text to be accumulated into a StringBuffer stored as a servlet scope attribute which is then withdrawable (or referentiable) as a java variable. This tag is useful for writing large chunks of sql, javascript, xml or any text with JSP <%=var%> variables embedded.

    In the above example, MyEclipse JSP Editor succumbs to both manifestations of the WST bug.
    1. It does not recognise xbuf as a variable because it does not read the TEI VariableInfo. In this case, editor complains that xbuf cannot be resolved.

    2. It tries to interpret the text contained between the text tags regardless if I escape them with a <![CDATA[ envelope. In this case, editor croaks on “status” and “cell” as “unknown tags”.

    But then Eclipse (as well as Netbeans JSP Editor for the past 5 years) validates the JSP without errors, which then runs successfully in Tomcat.

    #268820 Reply

    Riyad Kalla
    Member

    It’s really late in the 5.5 dev cycle, I’m making a note of this to see what the devs can do about it. I’m sure it will get fixed in 6.0, but I’ll try and get it pushed to 5.5 if possible.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: TEI VariableInfo Processing in MyEclipse JSP Editor

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