> 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:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to