Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 253205

Summary: Validator creates 3 wrong error markers in working file
Product: [WebTools] WTP Source Editing Reporter: Patrick Cornelissen <patrick.cornelissen>
Component: jst.jspAssignee: jst.jsp <jst.jsp-inbox>
Status: RESOLVED DUPLICATE QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 CC: thatnitind
Version: 3.0.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
jsp exmple file that triggers the errors
none
project that shows the error here none

Description Patrick Cornelissen CLA 2008-11-03 09:52:46 EST
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?
Comment 1 Patrick Cornelissen CLA 2008-11-03 09:53:36 EST
Created attachment 116814 [details]
jsp exmple file that triggers the errors
Comment 2 Patrick Cornelissen CLA 2008-11-03 10:22:59 EST
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
Comment 3 Nitin Dahyabhai CLA 2008-11-03 10:39:56 EST
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 ***