Hi Carlos,

you can also do this (directly in flowscript):

var props = new java.util.Properties();
props.load(new java.io.FileInputStream("your.properties"));
var prop = props.getProperty("property.name");

I don't know if there's a more direct and elegant way.

Regards,
Johannes

Carlos Martínez schrieb:
> Hello,
>
> Thanks for the response.
>
> Now i'm using this solucion but i want to know if it's possible to get
> directly the variables in the flowscript.
>
> Regards.
>
> DAVIGNON Andre - CETE NP/DIODé/PANDOC escribió:
>> Hi,
>>
>> If you can access it in a sitemap, you could try this to access it in
>> the flow :
>>
>> In the sitemap :
>>
>> <map:call function="myFonction">
>>     <map:parameter name="someName" value="${my-variable}">
>> </map:call>
>>
>> Then in the flow :
>>
>> var myVariable = cocoon.parameters.someName;
>>
>> Regards.
>>
>> Andr�
>>
>>
>> Le 10/06/2008 07:51, > Carlos Mart�nez (par Internet, d�p�t
>> [EMAIL PROTECTED])
>> a �crit  :
>> > Hello,
>> > > I have created a properties file with some interesting variables
>> in the > folder "WEB-INF/properties". I access this variables in the
>> sitemap easy > using this notation "${my-variable}". But the problem
>> is how to access > the same varible in the flowscript code.
>> > > Thanks.
>> > >
>> ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> > > >
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>   
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to