Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362878 - Errors for EL conditional operator in JSP
Summary: Errors for EL conditional operator in JSP
Status: RESOLVED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: jst.jsp (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.3.2   Edit
Assignee: Nick Sandonato CLA
QA Contact: Nick Sandonato CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-04 05:37 EDT by Victor Homyakov CLA
Modified: 2011-11-07 14:07 EST (History)
2 users (show)

See Also:


Attachments
patch (1.97 KB, patch)
2011-11-04 11:49 EDT, Nick Sandonato CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.