The trimSpaces is only applicable for Tomcat 5 and we're still using v4 due
to AIX/JDK compatibility issues.
Chris

-----Original Message-----
From: Mark Lowe [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 26, 2004 2:00 PM
To: Struts Users Mailing List
Subject: Re: Blank Line Filter


If you're using tomcat look for this in $CATALINA_HOME/conf/web.xml

     <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>
<!-- add or edit this -->
         <init-param>
        <param-name>trimSpaces</param-name>
        <param-value>true</param-value>
                </init-param>
         <init-param>
<!-- end add this -->
             <param-name>xpoweredBy</param-name>
             <param-value>false</param-value>
         </init-param>
         <load-on-startup>3</load-on-startup>
     </servlet>

Mark

On 26 Oct 2004, at 19:38, CRANFORD, CHRIS wrote:

> Robert -
>
> One thing I am noticing is that our action forwards to a jsp with the 
> following content:
>
>   <tiles:insert definition=".seekLayout">
>     <tiles:put name="title"><bean:message 
> key="reports.view.page.title"/></tiles:put>
>     <tiles:put name="helpURL"><bean:message 
> key="reports.view.help.url"/></tiles:put>
>     <tiles:put name="body" value="/pages/reports/viewreport-body.jsp"/>
>   </tiles:insert>
>
> The definition in tiels-def is:
>
>   <definition name=".seekLayout" path="/pages/layouts/seekLayout.jsp">
>     <put name="title" value="You forgot to include a title!"/>
>     <put name="helpURL" value="/help"/>
>     <put name="header" value="/pages/layouts/seekHeader.jsp"/>
>     <put name="body" value=""/>
>     <put name="footer" value="/paves/layouts/seekFooter.jsp"/>
>   </definition>
>
> The seekHeader.jsp has a tiles insert tag:
>   <tiles:insert page="/pages/mainmenu-body.jsp"/>
>
> I end up seeing the content of viewreport-body.jsp and seekHeader.jsp; 
> however I Never see the inserted /pages/mainmenu-body.jsp nor the 
> seekFooter.jsp when I apply a filter to the output.  Any ideas why?
>
> -----Original Message-----
> From: Robert Taylor [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 26, 2004 1:19 PM
> To: Struts Users Mailing List
> Subject: RE: Blank Line Filter
>
>
> I think your looking for a data compression filter.
>
> http://www.onjava.com/pub/a/onjava/2003/11/19/filters.html?page=1
>
>
> robert
>
>> -----Original Message-----
>> From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, October 26, 2004 12:26 PM
>> To: '[EMAIL PROTECTED]'
>> Subject: Blank Line Filter
>>
>>
>> How would I go about implementing a wrapper around my JSP servlet 
>> engine that would strip blank lines from the JSP stream when it sends 
>> the content to the browser?  We're using struts and some the el tags 
>> with heavy iteration and loops on large data sets and what we're 
>> seeing is that the output can be drastically reduced by removing 
>> blank lines that are emitted by the struts/JSTL tags.
>>
>> Any suggestions or recommendations are greatly appreciated.
>>
>> _______________________________________________________
>> Chris Cranford
>> Programmer/Developer
>> SETECH Inc. & Companies
>> 6302 Fairview Rd, Suite 201
>> Charlotte, NC  28210
>> Phone: (704) 362-9423, Fax: (704) 362-9409, Mobile: (704) 650-1042
>> Email: [EMAIL PROTECTED]
>>
>>
>
> ---------------------------------------------------------------------
> 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]


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