For Tomcat we use the following in the default web.xml:

    <servlet>
        <servlet-name>jsp</servlet-name>
        <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
    ......................
    ......................
        <init-param>
            <param-name>trimSpaces</param-name>
            <param-value>true</param-value>
        </init-param>
        <load-on-startup>3</load-on-startup>
    </servlet>

http://www.mail-archive.com/user%40struts.apache.org/msg23987.html


----- Original Message ----- 
From: "Leon Rosenberg" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Tuesday, June 28, 2005 2:25 PM
Subject: Re: Blank lines at the start in jsp output


> The simpliest way:
>
> <taglib ...
> ><taglib ...
> ><taglib ...
> ><render xml=""/>
>
> or
>
> <taglib ...><%--
> --%><taglib ...><%--
> --%><taglib ...><%--
> --%><render xml=""/>
>
>
>
>
> On Tue, 2005-06-28 at 13:12 +0200, Jose Marнa wrote:
> > Hi, I have a problem with the taglibs declaration, when the jsp is
> > processed generates n blank lines in the output but this is a problem if
> > I want to obtain only xml, for instance rdf.
> >
> > Anyone knows how to remove this blank lines in the jsp output?
> >
> > <taglib ...>
> > <taglib ...>
> > <taglib ...>
> > <render xml=""/>
> >
> > The output is the next one:
> > blank line
> > blank line
> > blank line
> > blank line
> > <?xml version..>
> > <../>
> >
> > This xml document is not valid because the xml declaration is not at the
> > start of document.
> >
> > Thank you in advanceЎЎЎ
> >
> >
> >
> >
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to