You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Magne Skjeret <ma...@nsd.uib.no> on 2003/04/02 16:07:45 UTC

include other xsp

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.

Magne


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: include other xsp

Posted by Christian Haul <ha...@dvs1.informatik.tu-darmstadt.de>.
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?)

	Chris.
-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: AW: include other xsp

Posted by Magne Skjeret <ma...@nsd.uib.no>.
At 17:29 02.04.2003 +0200, you wrote:
>hi magne,
>
>several possibilites:
>
>- have a look at the util.xsl logicsheet. it define several tags for
>including stuff (e.g. <util:include-source>, <util:include-uri>, ...)
>- CIncludeTransformer
>- XIncludeTransformer
>
>for the latter two you should be able to find docs. regarding the logicsheet
>I suggest having a look at it yourself.

Of course.
As long as I have some buzzwords to search for I will be allright.
Thanks for the help

Magne




> > -----Ursprungliche Nachricht-----
> > Von: cocoon-users-return-48601-m_rolappe=web.de@xml.apache.org
> > [mailto:cocoon-users-return-48601-m_rolappe=web.de@xml.apache.org]Im
> > Auftrag von Magne Skjeret
> > Gesendet: Mittwoch, 2. April 2003 16:08
> > An: cocoon-users@xml.apache.org
> > Betreff: include other xsp
> >
> >
> > 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.
> >
> > Magne
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> >
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: cocoon-users-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


AW: include other xsp

Posted by Marco Rolappe <m_...@web.de>.
hi magne,

several possibilites:

- have a look at the util.xsl logicsheet. it define several tags for
including stuff (e.g. <util:include-source>, <util:include-uri>, ...)
- CIncludeTransformer
- XIncludeTransformer

for the latter two you should be able to find docs. regarding the logicsheet
I suggest having a look at it yourself.

> -----Ursprungliche Nachricht-----
> Von: cocoon-users-return-48601-m_rolappe=web.de@xml.apache.org
> [mailto:cocoon-users-return-48601-m_rolappe=web.de@xml.apache.org]Im
> Auftrag von Magne Skjeret
> Gesendet: Mittwoch, 2. April 2003 16:08
> An: cocoon-users@xml.apache.org
> Betreff: include other xsp
>
>
> 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.
>
> Magne
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org