RE: Blank Line Filter

2004-10-26 Thread CRANFORD, CHRIS
I found a great utility called trimFilter on the net; however I've noticed
that it fails with out of memory on very large outputs of page data.  I also
noticed it does not lend itself well to tiles inserts.  Any suggestions on
how I could read the response data in a custom filter without an OutOfMemory
error and also be able to use tiles?

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



RE: Blank Line Filter

2004-10-26 Thread Robert Taylor
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]



Re: Blank Line Filter

2004-10-26 Thread David Stevenson
Is it really making that much of an impact?

Each blank line is only one byte.



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



RE: Blank Line Filter

2004-10-26 Thread CRANFORD, CHRIS
I manually removed just the blank lines themselves from the output ... No
trimming of the leading or trailing spaces and a saved output from 1 report
went from 2.2mb down to 492kb in size.  That's a 75% savings.. I think that
proves the need to be able to strip those darn things from the output to the
end users browser.

-Original Message-
From: David Stevenson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 26, 2004 1:32 PM
To: Struts Users Mailing List
Subject: Re: Blank Line Filter


Is it really making that much of an impact?

Each blank line is only one byte.



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



RE: Blank Line Filter

2004-10-26 Thread CRANFORD, CHRIS
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=titlebean:message
key=reports.view.page.title//tiles:put
tiles:put name=helpURLbean: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]



Re: Blank Line Filter

2004-10-26 Thread Mark Lowe
If you're using tomcat look for this in $CATALINA_HOME/conf/web.xml
servlet
servlet-namejsp/servlet-name

servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param
param-namefork/param-name
param-valuefalse/param-value
/init-param
!-- add or edit this --
init-param
	param-nametrimSpaces/param-name
	param-valuetrue/param-value
		/init-param
init-param
!-- end add this --
param-namexpoweredBy/param-name
param-valuefalse/param-value
/init-param
load-on-startup3/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=titlebean:message
key=reports.view.page.title//tiles:put
tiles:put name=helpURLbean: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]


RE: Blank Line Filter

2004-10-26 Thread CRANFORD, CHRIS
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-namejsp/servlet-name
 
servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
 init-param
 param-namefork/param-name
 param-valuefalse/param-value
 /init-param
!-- add or edit this --
 init-param
param-nametrimSpaces/param-name
param-valuetrue/param-value
/init-param
 init-param
!-- end add this --
 param-namexpoweredBy/param-name
 param-valuefalse/param-value
 /init-param
 load-on-startup3/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=titlebean:message 
 key=reports.view.page.title//tiles:put
 tiles:put name=helpURLbean: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]



RE: Blank Line Filter

2004-10-26 Thread CRANFORD, CHRIS
I just plugged in the Gzip compression shown below and for some strange
reason it prompts me to download the file for my filter of *.do.  Probably
content-type isn't set right or something I suspect.

Chris

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



RE: Blank Line Filter

2004-10-26 Thread Robert Taylor
Chris, unfortunately I have not yet implemented a compression filter
in my web apps. I had just read the article mentioned below and thought
it was applicable to your question. 

Sorry I'm not much help with your implementation questions.
It sounds like your hunch may be correct as the browser apparently
doesn't know how to handle the content once its passed through the filter.

robert

 -Original Message-
 From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 26, 2004 2:17 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Blank Line Filter
 
 
 I just plugged in the Gzip compression shown below and for some strange
 reason it prompts me to download the file for my filter of *.do.  Probably
 content-type isn't set right or something I suspect.
 
 Chris
 
 -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]



Re: Blank Line Filter

2004-10-26 Thread Mark Lowe
Another option could be to use JSPC precompile your jsps, but between 
the java file generation and the compilation, strip out what you don't 
want. I haven't done this (the stripping out part) so its only theory, 
but it would seem to help you blank line problem with no runtime over 
head.

Mark
On 26 Oct 2004, at 20:16, CRANFORD, CHRIS wrote:
I just plugged in the Gzip compression shown below and for some strange
reason it prompts me to download the file for my filter of *.do.  
Probably
content-type isn't set right or something I suspect.

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


RE: Blank Line Filter

2004-10-26 Thread CRANFORD, CHRIS
I removed all the filter logic and left it as a simple call to the
chainFilter.doFilter().  On some pages it works fine.  On others I get this
servlet exception:

2004-10-26 14:44:10,965 DEBUG [InsertTag]: [ServletException
in:/pages/reports/viewreport-body.jsp]
javax.servlet.ServletException:
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:533)
at
org.apache.jsp.viewreport_0002dbody_jsp._jspService(viewreport_0002dbody_jsp
.java:617)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
04)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)

Any ideas?  If I remove the filter all together, the page renders just fine.
Only thing I can consider is the size of the page being rendered may be
causing an issue.  The same page with 153 records works.  Page with 233
records fail.

Chris

-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 26, 2004 2:01 PM
To: Struts Users Mailing List
Subject: RE: Blank Line Filter


H. I don't know. Do the log files tell you anything?
What happens if you create a mock filter that does nothing,
do you get the same behavior?
What happens if you comment out the insert in the seekHeader.jsp, does the
seekFooter.jsp render then?

robert

 -Original Message-
 From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 26, 2004 1:39 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Blank Line Filter
 
 
 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=titlebean:message 
 key=reports.view.page.title//tiles:put
 tiles:put name=helpURLbean: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]



RE: Blank Line Filter

2004-10-26 Thread CRANFORD, CHRIS
I'm sorry, please disregard this error.  I think this is due to some corrupt
data for the particular records that are in the larger report.  My
apologies.

Thanks
Chris

-Original Message-
From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 26, 2004 2:40 PM
To: 'Struts Users Mailing List'
Subject: RE: Blank Line Filter


I removed all the filter logic and left it as a simple call to the
chainFilter.doFilter().  On some pages it works fine.  On others I get this
servlet exception:

2004-10-26 14:44:10,965 DEBUG [InsertTag]: [ServletException
in:/pages/reports/viewreport-body.jsp]
javax.servlet.ServletException:
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:533)
at
org.apache.jsp.viewreport_0002dbody_jsp._jspService(viewreport_0002dbody_jsp
.java:617)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
04)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)

Any ideas?  If I remove the filter all together, the page renders just fine.
Only thing I can consider is the size of the page being rendered may be
causing an issue.  The same page with 153 records works.  Page with 233
records fail.

Chris

-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 26, 2004 2:01 PM
To: Struts Users Mailing List
Subject: RE: Blank Line Filter


H. I don't know. Do the log files tell you anything?
What happens if you create a mock filter that does nothing,
do you get the same behavior?
What happens if you comment out the insert in the seekHeader.jsp, does the
seekFooter.jsp render then?

robert

 -Original Message-
 From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 26, 2004 1:39 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Blank Line Filter
 
 
 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=titlebean:message
 key=reports.view.page.title//tiles:put
 tiles:put name=helpURLbean: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