You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Hong Gia Dinh <hg...@sdcgrp.com> on 2002/11/27 04:27:30 UTC

xsp !!!

Hi all
I got a problem and tried to solve it!
i want to have a common 'common.xsp' file containing all the common values
and i have other personal files that uses all the common values!
so how can i use it ?? can i include/import a xsp file in oter xsp file?
i tried to use aggregate but it doesn't work!
 
can u all show me?
Cheers
 

Re: xsp !!!

Posted by Ivan Luzyanin <iv...@ProZa.Lviv.UA>.
> Hi all
> I got a problem and tried to solve it!
> i want to have a common 'common.xsp' file containing all the common values
> and i have other personal files that uses all the common values!
> so how can i use it ?? can i include/import a xsp file in oter xsp file?
> i tried to use aggregate but it doesn't work!
>
> can u all show me?
> Cheers

Place your common values into simple JavaClass file "CommonConstants.java" and 
then import one in any XSP:

<xsp:page>
<xsp:structure>
<xsp:import>&pkg;.CommonConstants</xsp:import>
</xsp:structure>
<xsp:logic>
	int foo = CommonConstants.BAR;
</xsp:logic>
</xsp:page>

Ivan.

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: xsp !!!

Posted by Cocoon User <co...@eng.gr>.
i use to include common xsp files using entities





On Wed, 27 Nov 2002, Hong Gia Dinh wrote:

> Hi all
> I got a problem and tried to solve it!
> i want to have a common 'common.xsp' file containing all the common values
> and i have other personal files that uses all the common values!
> so how can i use it ?? can i include/import a xsp file in oter xsp file?
> i tried to use aggregate but it doesn't work!
>
> can u all show me?
> Cheers
>
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>