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

Bug 283365

Summary: JSP 2.1 should accept trimDirectiveWhitespaces attribute in @page directive
Product: [WebTools] WTP Source Editing Reporter: Brett Randall <javabrett>
Component: jst.jspAssignee: 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:

Description Brett Randall CLA 2009-07-13 22:48:50 EDT
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/
Comment 1 Udo Walker CLA 2009-09-09 02:55:22 EDT
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.
Comment 2 Brett Randall CLA 2009-09-14 05:12:10 EDT
Thanks Udo for correcting my typo.
Comment 3 Nick Sandonato CLA 2009-11-23 14:03:44 EST
Checked in changes to support trimDirectiveWhitespaces="(true|false)" (defaults to false) and deferredSyntaxAllowedAsLiteral="(true|false)" (defaults to false).
Comment 4 Robin Sander CLA 2010-02-07 09:28:21 EST
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)
Comment 5 Brett Randall CLA 2010-02-08 01:21:28 EST
Please raise a new issue for the @tag problem and link to this issue from there. Thanks.
Comment 6 Robin Sander CLA 2010-02-09 05:22:09 EST
Done, see #302120.