Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSP and the fly likes Compressing JSP on web server and Uncompressing at client browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Compressing JSP on web server and Uncompressing at client browser" Watch "Compressing JSP on web server and Uncompressing at client browser" New topic
Author

Compressing JSP on web server and Uncompressing at client browser

sathish kannan
Greenhorn

Joined: Jul 11, 2002
Posts: 29
Hi

I had got an interesting problem from my customer:


Problems Encountered:

Due to the network constraints on our North America users� side, they frequently complaint the slowness of our system page loading.

But the challenge is of our existing users have already got used to existing UI page, and then we try not to change existing ones to achieve the usability.



Possible Solutions:

We get to know some J2EE web-applications are making use of one important feature to compress the JSP page on server side before returning back to the client side. Once the zipped jsp downloaded by client�s internet browser, the browser itself will auto unzip the file and display it.

The users can achieve the better performance and usability at the same time.


Can we acheive this? If so please give me some tips for me to proceed in the right direction?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42286
    
  64
There are a variety of reasons why a site can be perceived as slow. Compressing the page contents in transit only helps if network bandwidth is the problem. Unless you have positively established that that's indeed the problem, I'd also investigate whether the slowness isn't caused by other reasons (e.g. overloaded servers or network problems).

More information about how to enable gzip compression for various servers can be found here.
[ October 09, 2007: Message edited by: Ulf Dittmer ]

Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Compressing JSP on web server and Uncompressing at client browser