- This topic has 1 reply, 2 voices, and was last updated 17 years, 7 months ago by Riyad Kalla.
-
AuthorPosts
-
miamidotMemberRefer to Eclipse bugzilla issue
https://bugs.eclipse.org/bugs/show_bug.cgi?id=178443A 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.
Riyad KallaMemberIt’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.
-
AuthorPosts