<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.apple-style-span
        {mso-style-name:apple-style-span;}
span.E-MailFormatvorlage18
        {mso-style-type:personal-reply;
        font-family:"Arial","sans-serif";
        color:black;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=DE link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'>Hi Robert,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'>you can format your scriptlet code a little bit differently to
avoid the blank lines:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'><o:p> </o:p></span></p>

<p class=MsoNormal><span class=apple-style-span><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'><%@ page
trimDirectiveWhitespaces="true" <o:p></o:p></span></span></p>

<p class=MsoNormal><span class=apple-style-span><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>%><%@ page
trimDirectiveWhitespaces="true" <o:p></o:p></span></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'>%><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'>The JSP-Processor removes everything between the <% and %>,
so if you want to get rid of the blank lines, you should include the linebreaks
in these scriptlet passages.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'>This is not a very nice solution but we also needed something
similar, when we needed some line separated data to be sent by a template and
blank lines would have killed the data processor.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'>Regards<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'>Tobias<o:p></o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Von:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <b>Im
Auftrag von </b>Robert Weber<br>
<b>Gesendet:</b> Donnerstag, 7. April 2011 12:49<br>
<b>An:</b> opencms-dev@opencms.org<br>
<b>Betreff:</b> [opencms-dev] Trim whitespaces from template<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><span class=apple-style-span><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>Hi there,</span></span><span
style='font-size:10.0pt;font-family:"Arial","sans-serif"'><br>
<br>
<span class=apple-style-span>I would like to know if there is a possibility to
remove the blank lines left behind by JSP directives within a template.</span><br>
<br>
<span class=apple-style-span>I use Tomcat 5.5 and JSP 2.0 and therefore can not
use</span><br>
<br>
<span class=apple-style-span><%@ page
trimDirectiveWhitespaces="true" %></span><br>
<br>
<span class=apple-style-span>within my template.</span><br>
<br>
<span class=apple-style-span>I tried to use the init-parameter within my tomcat
web.xml</span><br>
<br>
<span class=apple-style-span><init-param></span><br>
<span class=apple-style-span><param-name>trimSpaces</param-name></span><br>
<span class=apple-style-span><param-value>true</param-value></span><br>
<span class=apple-style-span></init-param></span><br>
<br>
<span class=apple-style-span>But I does not work because the file extension of
my generated file is *.html I guess.</span><br>
<br>
<span class=apple-style-span>Any help is really appreciated!</span><br>
<br>
<span class=apple-style-span>Cheers!</span><br>
<span class=apple-style-span><span style='color:#888888'>Robert</span></span></span>
<o:p></o:p></p>

</div>

</body>

</html>