Community
Participate
Working Groups
I have a problem with the jsp validation. In the attached file in my small testproject the validator generates 3 markers... "Syntax error on token "}", delete this token", "Syntax error on token "catch", identifier expected", "Syntax error on insert "Finally" to complete TryStatement" each with the linenumber 0 for the given file As you can see there is no special markup, no include statements, no inline java code. We also have a customer project where the same error occurs on multiple files. But the error is triggered there with an existing linenumber (which IMHO is not suspicious) ... <form:select path="contractType" size="1"> <form:option value="">---</form:option> <form:option value="<%= ContractType.GUC %>">Netznutzungsvertrag</form:option> <form:option value="<%= ContractType.GCC %>">Netzanschlussvertrag</form:option> <form:option value="<%= ContractType.CUC %>">Anschlussnutzungsvertrag </form:option> </form:select> ... The error occurs in the last option row between the %= and the ContractType.CUC. (Yes the error points to the space between them and yes I have replaced it with a regular space just to be sure that it's the correct char) The given examples compile well and the application is working, but the cluttered problem view makes it hardly usable. Am I missing something or is this a bug in the validator?
Created attachment 116814 [details] jsp exmple file that triggers the errors
Created attachment 116819 [details] project that shows the error here The project was smaller than expected, so I have attached the whole project instead of the jsp. The pricelist.jsp is the one with the error
Confirmed that the original file and attached project work as they should with JSTL 1.1 and Spring 2.5.5 in WTP 3.0.3, i.e. no errors (other than spelling, at least for the JSP files). *** This bug has been marked as a duplicate of bug 249799 ***