Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364159 - [editor] JSP editor adds JSP comment (<%-- --%>) in JSPX page
Summary: [editor] JSP editor adds JSP comment (<%-- --%>) in JSPX page
Status: NEW
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: jst.jsp (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Salvador Zalapa CLA
QA Contact: Nick Sandonato CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-18 09:42 EST by Lukas Zboron CLA
Modified: 2012-02-22 17:20 EST (History)
2 users (show)

See Also:


Attachments

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