Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362891 - JavaScript errors for EL in JavaScript in JSP page
Summary: JavaScript errors for EL in JavaScript in JSP page
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: Web (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Chris Jaun CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-04 07:43 EDT by Victor Homyakov CLA
Modified: 2013-06-19 11:11 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Homyakov CLA 2011-11-04 07:43:46 EDT
Build Identifier: 20110916-0149

Eclipse JavaScript Validator shows 3 errors and 1 warning for this JSP:
<%@page contentType="text/html; charset=UTF-8"%>
<script type="text/javascript">foo(${bar});</script>

Errors and warning:
Syntax error on token "}", ( expected
Syntax error, insert ")" to complete Arguments
Syntax error, insert "}" to complete Block
Missing semicolon

Eclipse:
Eclipse Java EE IDE for Web Developers.
Version: Indigo Service Release 1
Build id: 20110916-0149

Web Tools:
wtp-M-3.3.2-20111026220513.zip downloaded from http://build.eclipse.org/webtools/committers/


Reproducible: Always

Steps to Reproduce:
1. Create Web Project.
2. Create JSP:
<%@page contentType="text/html; charset=UTF-8"%>
<script type="text/javascript">foo(${bar});</script>
3. Validate it with Client-side JavaScript Validator

Should be no JavaScript errors/warnings on EL expression.