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

Bug 362878

Summary: Errors for EL conditional operator in JSP
Product: [WebTools] WTP Source Editing Reporter: Victor Homyakov <vkhomyackov>
Component: jst.jspAssignee: Nick Sandonato <nsand.dev>
Status: RESOLVED FIXED QA Contact: Nick Sandonato <nsand.dev>
Severity: normal    
Priority: P3 CC: mauromol, thatnitind
Version: unspecified   
Target Milestone: 3.3.2   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
patch none

Description Victor Homyakov CLA 2011-11-04 05:37:51 EDT
Build Identifier: 20110916-0149

EL conditional operator in JSP produces error:

Encountered "<EOF>" at line 1, column 12.
Was expecting one of:
    <INTEGER_LITERAL> ...
    <FLOATING_POINT_LITERAL> ...
    <STRING_LITERAL> ...
    "true" ...
    "false" ...
    "null" ...
    "(" ...
    "-" ...
    "not" ...
    "!" ...
    "empty" ...
    <IDENTIFIER> ...
    "not" ...
    "!" ...
    "-" ...
    "empty" ...
    "true" ...
    "false" ...
    <INTEGER_LITERAL> ...
    <FLOATING_POINT_LITERAL> ...
    <STRING_LITERAL> ...
    "null" ...
    "(" ...
    <IDENTIFIER> ...
    <IDENTIFIER> ...
    <IDENTIFIER> ...
    <IDENTIFIER> ...
    <IDENTIFIER> ...
    <IDENTIFIER> ...
    <IDENTIFIER> ...


Reproducible: Always

Steps to Reproduce:
1. Install wtp-M-3.3.2-20111026220513.zip from http://build.eclipse.org/webtools/committers/
2. Create JSP file with line
<input type="text" ${disabled == 'true' ? 'disabled="disabled"' : ''} />
3. Fragment "= '" in EL expression is marked with red line, error marker appears.
Comment 1 Nick Sandonato CLA 2011-11-04 11:49:47 EDT
Created attachment 206471 [details]
patch

Looks like the entirety of the embedded EL region was not being passed for translation.
Comment 2 Nick Sandonato CLA 2011-11-07 14:07:28 EST
Code checked in.