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

Bug 364159

Summary: [editor] JSP editor adds JSP comment (<%-- --%>) in JSPX page
Product: [WebTools] WTP Source Editing Reporter: Lukas Zboron <lzboron>
Component: jst.jspAssignee: Salvador Zalapa <zalapa>
Status: NEW --- QA Contact: Nick Sandonato <nsand.dev>
Severity: normal    
Priority: P3 CC: lzboron, thatnitind
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Lukas Zboron CLA 2011-11-18 09:42:56 EST
Build Identifier: wtp 3.3.1 - 20100921193530

When I open JSPX page in JSP editor and press ctrl + shift + C, editor adds comment to selected lines. If line contains only standard HTML tags or text, <!-- --> is used. If there is EL function or tag with prefix in selected line (jsp, jstl, tiles,...), <%-- --%> is used. This is not valid XML syntax.

I currently use SpringSource ToolSuite 2.8.0 based on Eclipse 3.7.1. As far as I know this happens in all versions of Eclipse.

Reproducible: Always

Steps to Reproduce:
1. Create JSPX file.
2. Select line containing element with prefix, for example </jsp:root>.
3. Press ctrl+shift+C to comment selected line.