You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2020/01/07 17:29:32 UTC
[Bug 64056] New: JSP compiler not rendering spaces
https://bz.apache.org/bugzilla/show_bug.cgi?id=64056
Bug ID: 64056
Summary: JSP compiler not rendering spaces
Product: Tomcat 7
Version: 7.0.96
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Jasper
Assignee: dev@tomcat.apache.org
Reporter: velteyn@gmail.com
Target Milestone: ---
Created attachment 36953
--> https://bz.apache.org/bugzilla/attachment.cgi?id=36953&action=edit
jsp
Hello Im using Tomcat 9 with Liferay 6.0.2 GA6
I noticed a problem with a JSP compilation.
I have this start.jsp very simple:
<%--
/**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it
under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
--%>
<%@ include file="/html/taglib/aui/col/init.jsp" %>
<div class="span<%= span %> <%= cssClass %>" id="<%= id %>" <%=
InlineUtil.buildDynamicAttributes(dynamicAttributes) %>>
when it is compiled I obtain the following code:
[…]
out.write("<div class=\"span");
out.print( span );
out.print( cssClass );
out.write("\" id=\"");
out.print( id );
out.write('"');
out.write(' ');
out.print( InlineUtil.buildDynamicAttributes(dynamicAttributes) );
out.write('>');
as you can see between the span and the cssClass there are no spaces but the
JSP states : class="span<%= span %>XXXXMISSING SPACEXXXX<%= cssClass %>"
I think this is a regression because the older Tomcat bundled with liferay
(Tomcat 7.0.42) works correctly.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 64056] JSP compiler not rendering spaces
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64056
Edoardo <ve...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
CC| |velteyn@gmail.com
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 64056] JSP compiler not rendering spaces
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64056
--- Comment #1 from Edoardo <ve...@gmail.com> ---
Created attachment 36954
--> https://bz.apache.org/bugzilla/attachment.cgi?id=36954&action=edit
the compiled jsp
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 64056] JSP compiler not rendering spaces
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64056
Edoardo <ve...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
--- Comment #2 from Edoardo <ve...@gmail.com> ---
My bad !! I had a problem with a JSP exceeding 4096 bytes so I turned ON the
JSP trim space feature.. That feature trims anything
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org