Bug 514592

Summary: JSP editor does not highlight or assist JSP tags in files with alternate contentType
Product: [WebTools] WTP Source Editing Reporter: Missing name <mattcoz>
Component: jst.jspAssignee: jst.jsp <jst.jsp-inbox>
Status: NEW --- QA Contact: Nick Sandonato <nsand.dev>
Severity: enhancement    
Priority: P3 CC: thatnitind
Version: 3.8Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:

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.