You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Vasumathi <va...@koensoft.com> on 2006/01/12 08:06:37 UTC

Space in jsp

Hi 
   after running the web application, when i see the source of that page, 
there are lots and lots of space between each line.
what is the reason for that, anyone can help me plz.
i not used any &nbsb in that jsp page...

Regards
vasu


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Space in jsp

Posted by Torgeir Veimo <to...@pobox.com>.
On Thu, 2006-01-12 at 15:43 +0530, Meenakshi Singh wrote:
> Also in another application , I have checked the entries that you have
> specified for the compression on tomcat are already there. However, cudn't
> see much difference in terms of performance.

Well the network is probably fast between you and your test server. And
if you try to view the files with the browser, it transparently
decompresses them for you, so you never really notice.


-- 
Torgeir Veimo <to...@pobox.com>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Space in jsp

Posted by Meenakshi Singh <me...@mind-infotech.com>.
Also in another application , I have checked the entries that you have
specified for the compression on tomcat are already there. However, cudn't
see much difference in terms of performance.

Thanks & Regards,
Meenakshi.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Space in jsp

Posted by Meenakshi Singh <me...@mind-infotech.com>.
Ok. I'll do some R & D on it.
Thanks a lot for your responses.

Regards,
Meenakshi

-----Original Message-----
From: Torgeir Veimo [mailto:torgeir@pobox.com]
Sent: Thursday, January 12, 2006 4:30 PM
To: user@struts.apache.org
Subject: RE: Space in jsp


On Thu, 2006-01-12 at 15:39 +0530, Meenakshi Singh wrote:
> My net surfing is not working today.
> I did manage to view the main page but cudn't see the related links.
>
> I understood what gzip does.However, I couldn't understand as to how can I
> implement it in my application. I use IBM websphere server.  I don't know
if
> I need to get some tool etc.
> For ex: we need to download winzip or similiar utility to zip the files.
>
> What do we actualy do to implement such a thing.
> Would you please explain the steps which we need to perform to enable
gzip.

Well, if memory serves right, websphere can do it in version 5 and up,
but i guess they call it http compression. You need to look in the
configuration or help section. It's also possible, but more difficult to
do it with a servlet filter.

--
Torgeir Veimo <to...@pobox.com>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Space in jsp

Posted by Torgeir Veimo <to...@pobox.com>.
On Thu, 2006-01-12 at 15:39 +0530, Meenakshi Singh wrote:
> My net surfing is not working today.
> I did manage to view the main page but cudn't see the related links.
> 
> I understood what gzip does.However, I couldn't understand as to how can I
> implement it in my application. I use IBM websphere server.  I don't know if
> I need to get some tool etc.
> For ex: we need to download winzip or similiar utility to zip the files.
> 
> What do we actualy do to implement such a thing.
> Would you please explain the steps which we need to perform to enable gzip.

Well, if memory serves right, websphere can do it in version 5 and up,
but i guess they call it http compression. You need to look in the
configuration or help section. It's also possible, but more difficult to
do it with a servlet filter.

-- 
Torgeir Veimo <to...@pobox.com>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Space in jsp

Posted by Meenakshi Singh <me...@mind-infotech.com>.
My net surfing is not working today.
I did manage to view the main page but cudn't see the related links.

I understood what gzip does.However, I couldn't understand as to how can I
implement it in my application. I use IBM websphere server.  I don't know if
I need to get some tool etc.
For ex: we need to download winzip or similiar utility to zip the files.

What do we actualy do to implement such a thing.
Would you please explain the steps which we need to perform to enable gzip.

Thanks & Regards,
Meenakshi

-----Original Message-----
From: Torgeir Veimo [mailto:torgeir@pobox.com]
Sent: Thursday, January 12, 2006 2:58 PM
To: user@struts.apache.org
Subject: RE: Space in jsp


On Thu, 2006-01-12 at 14:50 +0530, Meenakshi Singh wrote:
> Hi,
>
> Would you please explain what gzip compression in the servlet container
is?

http://www.httprevealer.com/usage_gzip.htm

--
Torgeir Veimo <to...@pobox.com>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Space in jsp

Posted by Torgeir Veimo <to...@pobox.com>.
On Thu, 2006-01-12 at 14:50 +0530, Meenakshi Singh wrote:
> Hi,
> 
> Would you please explain what gzip compression in the servlet container is?

http://www.httprevealer.com/usage_gzip.htm

-- 
Torgeir Veimo <to...@pobox.com>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Space in jsp

Posted by Meenakshi Singh <me...@mind-infotech.com>.
Thank you for your reply.
I use websphere server. Do you have any idea what needs to be done in that?

Regards,
Meenakshi
-----Original Message-----
From: Torgeir Veimo [mailto:torgeir@pobox.com]
Sent: Thursday, January 12, 2006 2:55 PM
To: user@struts.apache.org
Subject: RE: Space in jsp


On Thu, 2006-01-12 at 14:50 +0530, Meenakshi Singh wrote:
> 
> Would you please explain what gzip compression in the servlet
> container is?
> & How do you turn it on?
> Is it some tool that needs to be downloaded from some where. 

Depens on which servlet container you're using. If it's tomcat, look in
server.xml, on a <Connector .. > you can add the following properties;

compression="on"
compressionMinSize="2048"
noCompressionUserAgents="gozilla, traviata"
compressableMimeType="text/html,text/xml"


-- 
Torgeir Veimo <to...@pobox.com>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Space in jsp

Posted by Torgeir Veimo <to...@pobox.com>.
On Thu, 2006-01-12 at 14:50 +0530, Meenakshi Singh wrote:
> 
> Would you please explain what gzip compression in the servlet
> container is?
> & How do you turn it on?
> Is it some tool that needs to be downloaded from some where. 

Depens on which servlet container you're using. If it's tomcat, look in
server.xml, on a <Connector .. > you can add the following properties;

compression="on"
compressionMinSize="2048"
noCompressionUserAgents="gozilla, traviata"
compressableMimeType="text/html,text/xml"


-- 
Torgeir Veimo <to...@pobox.com>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Space in jsp

Posted by Thomas Joseph <th...@kottsoftware.com>.
Hi, 

You may like to refer to the book "Core Servlets and Java Server Pages" by Marty Hall. (www.coreservlets.com)
An online version is avalable at http://pdf.coreservlets.com/CSAJSP-Chapter4.pdf section 4.4.



| Hi,
| 
| Would you please explain what gzip compression in the servlet container is?
| & How do you turn it on?
| Is it some tool that needs to be downloaded from some where.
| 
| Thanks & Regards,
| MS
| 
| -----Original Message-----
| From: Torgeir Veimo [mailto:torgeir@pobox.com]
| Sent: Thursday, January 12, 2006 1:12 PM
| To: Struts Users Mailing List
| Subject: Re: Space in jsp
| 
| 
| On Wed, 2006-01-11 at 23:06 -0800, Vasumathi wrote:
| > 
| >    after running the web application, when i see the source of that
| > page, 
| > there are lots and lots of space between each line.
| > what is the reason for that, anyone can help me plz.
| > i not used any &nbsb in that jsp page... 
| 
| It's per jsp spec, whitespace is retained, and i think (if memory serves
| right) that tags are converted to whitespace. 
| 
| You can turn on gzip compression in the servlet container to compress
| output to reduce page download time.
| 
| -- 
| Torgeir Veimo <to...@pobox.com>
| 


Thanks and Regards,
Thomas Joseph
thomas.joseph@kottsoftware.com
Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road | Cochin-682015 | India
www.kottsoftware.com



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Space in jsp

Posted by Meenakshi Singh <me...@mind-infotech.com>.
Hi,

Would you please explain what gzip compression in the servlet container is?
& How do you turn it on?
Is it some tool that needs to be downloaded from some where.

Thanks & Regards,
MS

-----Original Message-----
From: Torgeir Veimo [mailto:torgeir@pobox.com]
Sent: Thursday, January 12, 2006 1:12 PM
To: Struts Users Mailing List
Subject: Re: Space in jsp


On Wed, 2006-01-11 at 23:06 -0800, Vasumathi wrote:
> 
>    after running the web application, when i see the source of that
> page, 
> there are lots and lots of space between each line.
> what is the reason for that, anyone can help me plz.
> i not used any &nbsb in that jsp page... 

It's per jsp spec, whitespace is retained, and i think (if memory serves
right) that tags are converted to whitespace. 

You can turn on gzip compression in the servlet container to compress
output to reduce page download time.

-- 
Torgeir Veimo <to...@pobox.com>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Space in jsp

Posted by Torgeir Veimo <to...@pobox.com>.
On Wed, 2006-01-11 at 23:06 -0800, Vasumathi wrote:
> 
>    after running the web application, when i see the source of that
> page, 
> there are lots and lots of space between each line.
> what is the reason for that, anyone can help me plz.
> i not used any &nbsb in that jsp page... 

It's per jsp spec, whitespace is retained, and i think (if memory serves
right) that tags are converted to whitespace. 

You can turn on gzip compression in the servlet container to compress
output to reduce page download time.

-- 
Torgeir Veimo <to...@pobox.com>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org