cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <DHo...@csir.co.za>
Subject RE: xsp !!!
Date Wed, 27 Nov 2002 09:49:02 GMT
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.)

>>> hgdinh@sdcgrp.com 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:ivan@ProZa.Lviv.UA] 
Sent: 27 November 2002 16:24 
To: cocoon-users@xml.apache.org 
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message