| Summary: | JSP 2.1 should accept trimDirectiveWhitespaces attribute in @page directive | ||
|---|---|---|---|
| Product: | [WebTools] WTP Source Editing | Reporter: | Brett Randall <javabrett> |
| Component: | jst.jsp | Assignee: | Nick Sandonato <nsand.dev> |
| Status: | RESOLVED FIXED | QA Contact: | Nitin Dahyabhai <thatnitind> |
| Severity: | minor | ||
| Priority: | P3 | CC: | ccc, nsand.dev, robin.sander, Udo.Walker |
| Version: | 3.1 | ||
| Target Milestone: | 3.2 M4 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
The title of this bug entry should start with "JSP 2.1" instead of "JSP 1.2". The attribute "trimDirectiveWhitespaces" is new in JSP 2.1. Thanks Udo for correcting my typo. Checked in changes to support trimDirectiveWhitespaces="(true|false)" (defaults to false) and deferredSyntaxAllowedAsLiteral="(true|false)" (defaults to false). Unfortunately trimDirectiveWhitespaces is still reported as an error when used in tag files. According to the spec this attribute is suported by the tag directive, e.g.: <%@tag pageEncoding="UTF-8" trimDirectiveWhitespaces="true"%> Can someone reopen this bug or should I add a new one? (I'm using WTP 3.2 from the Helios 3.6M5 J2EE bundle, Mac OS X 64bit cocoa) Please raise a new issue for the @tag problem and link to this issue from there. Thanks. Done, see #302120. |
Build ID: 20090621-0832 Steps To Reproduce: 1. Create a webapp project with facet Dynamic Web Module 2.5 2. Create a JSP page. 3. Add the following page directive: <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" trimDirectiveWhitespaces="true" %> 4. Note the warning generated on Undeclared attribute name "trimDirectiveWhitespaces". More information: Editor is from org.eclipse.jst.jsp.ui (1.1.400.v200904292008): org.eclipse.wst.sse.ui.StructuredTextEditor Possible contributor: org.eclipse.jst.jsp.core.jspsource.source.source.EditorContext More info on the trimDirectiveWhitespaces attribute/directive is available from http://java.sun.com/developer/technicalArticles/J2EE/jsp_21/