<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:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@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.E-MailFormatvorlage17
{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'>I think you misunderstood my comment. I just wanted to show you
how you have to use the <% %> markers to avoid whitespaces. The directive
was not intended to have an effect, i just copied it from your email, to have
content to put between the jsp braces </span><span style='font-size:11.0pt;
font-family:Wingdings;color:black'>J</span><span style='font-size:11.0pt;
font-family:"Arial","sans-serif";color:black'> Better example:<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'><% @page import=“java.util.Date“%><%<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'>@page import=“java.util.Calendar“%><%<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'>// do something in scriptlet code %><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 important part is the positioning of the scriptlet delimiters<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'>Cheers<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>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:black'><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> Freitag, 8. April 2011 11:44<br>
<b>An:</b> opencms-dev@opencms.org<br>
<b>Betreff:</b> [opencms-dev] trim whitespaces from jsp template<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Hi Tobias, hi Florian,<o:p></o:p></p>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>@Tobias<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>I cannot use this directive because my JSP Version is 2.0 as
this directive is only Version 2.1<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>@Florian <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>I inlcuded this:<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<div>
<p class=MsoNormal> <servlet><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>
<servlet-name>jsp</servlet-name><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <init-param><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>
<param-name>fork</param-name><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>
<param-value>false</param-value><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> </init-param><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <init-param><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>
<param-name>xpoweredBy</param-name><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>
<param-value>false</param-value><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> </init-param><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <init-param><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>
<param-name>trimSpaces</param-name><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>
<param-value>true</param-value><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> </init-param><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>
<load-on-startup>3</load-on-startup><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> </servlet><o:p></o:p></p>
</div>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>within my gloabl web.xml under the conf-directory of the
tomcat but there are still many blank lines within my HTML-Code.<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>Cheers!<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>Robert<o:p></o:p></p>
</div>
</div>
</body>
</html>