[opencms-dev] trim whitespaces from jsp template
Tobias Mantsch
t.mantsch at easysport.de
Fri Apr 8 12:38:45 CEST 2011
Hi robert,
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 J Better example:
<% @page import="java.util.Date"%><%
@page import="java.util.Calendar"%><%
// do something in scriptlet code %>
The important part is the positioning of the scriptlet delimiters
Cheers
Tobias
Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Robert Weber
Gesendet: Freitag, 8. April 2011 11:44
An: opencms-dev at opencms.org
Betreff: [opencms-dev] trim whitespaces from jsp template
Hi Tobias, hi Florian,
@Tobias
I cannot use this directive because my JSP Version is 2.0 as this
directive is only Version 2.1
@Florian
I inlcuded this:
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
<init-param>
<param-name>fork</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>xpoweredBy</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>trimSpaces</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>3</load-on-startup>
</servlet>
within my gloabl web.xml under the conf-directory of the tomcat but
there are still many blank lines within my HTML-Code.
Cheers!
Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20110408/a676b4df/attachment.htm>
More information about the opencms-dev
mailing list