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

Bug 330411

Summary: [validation] JSPX format file allows invalid (non-XML) scriptlet syntax
Product: [WebTools] WTP Source Editing Reporter: Ian Trimble <ian.trimble>
Component: jst.jspAssignee: Salvador Zalapa <zalapa>
Status: NEW --- QA Contact: Nick Sandonato <nsand.dev>
Severity: normal    
Priority: P3 CC: thatnitind
Version: 3.2.2   
Target Milestone: Future   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Ian Trimble CLA 2010-11-16 18:23:23 EST
In a JSPX (XML-syntax JSP) file, the use of scriptlet tags like "<% out.println("Hello!"); %>" is not validated as an error, but at runtime the JSP compiler will fail to compile it. If the format is JSPX, the valid equivalent would be "<jsp:scriptlet>out.println("Hello!");</jsp:scriptlet>". The following servers are known to not compile the invalid syntax: Tomcat 6.0, WLS 11gR1.