Skip to Content

Compression and Page Fragments


In a view I include several page fragments using the <%@include... tag. The view has compression set on (remove leading/trailing spaces, carriage returns,?.). The result is, that all HTML-Code from the view is compressed, the HTML from the included page fragment is NOT compressed. Is this correct? I would have expected, that the view options are inherited to all includes.

In my BSPs I can save up to 25% using the compression, so I would like to compress all my includes too. But page fragments doesn?t have a compression option. Is there a way to compress page fragments? Or should I change the page fragments to views an include these? Does this have any disadvantages (except of redefining all page attributes)?


Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Mar 15, 2004 at 01:14 PM


    i'm not sure that i understand your question...

    What do you mean with "view" ? Is this Portal's view..., JSP page...or what?

    And what about "compression" you're talking about - this kind of compression doesn't exists in J2EE engine.

    Could you explain more precisely?

    Add comment
    10|10000 characters needed characters exceeded