| Summary: | JSP validator shows false errors for EL conditional operator | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Source Editing | Reporter: | Andrew <coder27> | ||||
| Component: | jst.jsp | Assignee: | Nick Sandonato <nsand.dev> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Nick Sandonato <nsand.dev> | ||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | mauromol, thatnitind | ||||
| Version: | 3.3 | ||||||
| Target Milestone: | 3.3.2 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Lowering severity as this doesn't meet the criteria for a "blocker." https://bugs.eclipse.org/bugs/page.cgi?id=fields.html#importance Created attachment 206631 [details]
patch
The parser was turning the conditional expression and turning the two identifiers into a method invocation. Updated the el specification to look far enough ahead to make sure something is a method invocation.
Code checked in. |
JSP validator do not understand "expr ? value1 : value2" EL operator. This fragment generates false error message: <c:set var="customer" value="${(empty PurchaserName) ? tx : fn:substring(PurchaserName, 0, 100) }"/> The function tx:fn is undefined sale.jsp -- Configuration Details -- Product: Eclipse 1.4.0.20110609-1120 (org.eclipse.epp.package.jee.product) Installed Features: org.eclipse.jdt 3.7.0.v20110520-0800-7z8gFchFMTdFYKuLqBLqRja9B15B