- This topic has 1 reply, 2 voices, and was last updated 18 years ago by
Riyad Kalla.
-
AuthorPosts
-
kfjelMemberIt would appear that there is a JSP parse issue in MyEclipse 5.1.1 GA / Eclipse 3.2.2 (Just ran Eclipse software update to ensure I had latest versions). I have not been able to test this on other systems, but I received a number of such warnings after upgrading from a previous version of Eclipse (afraid I don’t have exact version number, might have been 3.1)
The following is code illustrating the issue as it appears both at my work and home setup using the versions mentioned above: (The project was fully generated in eclipse, and not otherwise modified)
<%@ page language="java" pageEncoding="ISO-8859-1"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %> <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %> <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %> <%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html:html lang="true"> <head> <html:base /> <title>index.jsp</title> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="This is my page"> <!-- <link rel="stylesheet" type="text/css" href="styles.css"> --> </head> <body> <!-- This works fine --> <% try { %> <% } catch(Exception e_) { } %> <!-- This works fine --> <% try { %> <logic:iterate id=""> </logic:iterate> <% } catch(Exception e_) { } %> <!-- This displays the following warnings in Eclipse--> <!-- Syntax error, insert "}" to complete Block --> <!-- Invalid character used in text string ( < ) --> <% try { %> <logic:iterate id=""> <logic:iterate id=""> </logic:iterate> </logic:iterate> <% } catch(Exception e_) { } %> <!-- A workaround for those that face a similar issue --> <c:catch var="e"> <logic:iterate id=""> <logic:iterate id=""> </logic:iterate> </logic:iterate> </c:catch> <c:if test="${null != e}"> </c:if> </body> </html:html>
In other words, the parse error appears when 2 sets of <logic:iterate> are wrapped in a <% try/catch %> Does this appear in other system setups as well?
I have found a similar report in the https://www.genuitec.com/forums/topic/jsp-syntax-error-quot-insert-to-complete-body-quot-incor/&highlight=complete+block thread, but the specifics are a bit different.
Key support info:
MyEclipse Enterprise Workbench
Version: 5.1.1 GA
Build id: 20070302-5.1.1-GAEclipse Project SDK
Version: 3.2.2.r322_v20070104-dCGKm0Ln38lm-8s
Build id: M20070212-1330————–
Knut Fjellheim
Developer, Resource-Partner AS
Norway
Riyad KallaMemberKnut,
We have confirmed this bug, thank you for the heads up. We’ll see if we can get this fixed for the 6.0 release. -
AuthorPosts