cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Haul <>
Subject Re: include other xsp
Date Wed, 02 Apr 2003 16:36:39 GMT
On 02.Apr.2003 -- 04:07 PM, Magne Skjeret wrote:
> Hi
> I have just started to use cocoon for my web applications, and going from 
> jsp to xsp, there is one thing I really is missing.
> In jsp it was possible to use include statements to include other jsp into 
> each other.
> Now, I just have a enoumous long xsp page.
> Is it possible to do a include with xsp?
> I have searched google and deja without any result.

You can use logicsheets and java methods for example.

An enormous large page indicates that there is losts of potential to
separate things into smaller aspects. 

Put the appearance into (multiple!) XSL (-> transformer) or even CSS,
put logic into logicsheets or java helper classes. Put flow into flow
or actions (only ressort in 2.0, flow is nicer though). Use
aggregation to assemble different and independant parts of your
page. Include is fine as well, but it's hidden compared to aggregation
from a sitemap's POV.

Maybe you don't even need XSP and static XML would do fine as well.

Try to reuse as much and as often as possible. Write your stuff for
reuse (-> could the XML produced by your XSP be used for other views
as well?)

C h r i s t i a n       H a u l
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message