well - are you aware that xsp is *also* recompiled 
every time you change the file!  (because that's
what it is converted into... a Java file, that must
be regenerated and recompiled before it can be
used.)

>>> [EMAIL PROTECTED] 27/11/2002 11:49:56 >>>

thnks 
but i dont want to use java file coz it made me recompile everytime i
update the file. 
so, cant i use with xsp? 
cheers 

-----Original Message----- 
From: Ivan Luzyanin [mailto:[EMAIL PROTECTED]] 
Sent: 27 November 2002 16:24 
To: [EMAIL PROTECTED] 
Cc: Hong Gia Dinh 
Subject: Re: 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 
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