Bug 514592 - JSP editor does not highlight or assist JSP tags in files with alternate contentType
Summary: JSP editor does not highlight or assist JSP tags in files with alternate cont...
Status: NEW
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: jst.jsp (show other bugs)
Version: 3.8   Edit
Hardware: PC Windows 10
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: jst.jsp CLA
QA Contact: Nick Sandonato CLA
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2017-04-01 12:19 EDT by Missing name CLA
Modified: 2018-05-05 03:19 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Missing name CLA 2017-04-01 12:19:52 EDT
If I have a JSP file with a contentType set to something other than text/html, the syntax highlighting and content assist do not work for JSP tags. It still works for EL though. My specific issue is with a JSP that I want to serve a JSON response. If I remove the <%@ page contentType="application/json; charset=UTF-8" %> line at the top of the file it works again.
Comment 1 Nitin Dahyabhai CLA 2018-05-05 03:19:14 EDT
We don't presently support editing files that output a content type of JSON. A high quality contributed patch making that possible would be considered.