[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





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,




I cannot use this directive because my JSP Version is 2.0 as this
directive is only Version 2.1




I inlcuded this:




















within my gloabl web.xml under the conf-directory of the tomcat but
there are still many blank lines within my HTML-Code.




-------------- 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