You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Timur Izhbulatov <ti...@yxo.ru> on 2004/10/14 19:27:07 UTC
[Flow] getInitParameter()
Hi All!
I use Cocoon 2.1.5 and cocoon.context.getInitParameter("upload-directory")
doesn't seem to work:
// returns an empty string
var dir = cocoon.context.getInitParameter("upload-directory");
var list = new Array(dir);
cocoon.sendPage("test-pipeline", {"list": list});
The test-pipeline contains a JXTemplate which iterates over the list and
show its items. The pipeline does work since I use it widely for debuging my
flowscripts.
Where's the problem?
Thanks in advance.
Timur
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: getInitParameter()
Posted by Timur Izhbulatov <ti...@yxo.ru>.
Jorg Heymans писал(а):
>
>
> Timur Izhbulatov wrote:
>> Hi All!
>> I use Cocoon 2.1.5 and
>> cocoon.context.getInitParameter("upload-directory") doesn't seem to work:
>> // returns an empty string
>> var dir = cocoon.context.getInitParameter("upload-directory");
>
> did you uncomment this parameter in web.xml? It's commented by default i
> think.
Yes, it's uncommented.
P.S.: Sorry, I thought my message wasn't delivered and I reposted the
similar message again =)
Timur
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: [Flow] getInitParameter()
Posted by Jorg Heymans <jh...@domek.be>.
Timur Izhbulatov wrote:
> Hi All!
> I use Cocoon 2.1.5 and
> cocoon.context.getInitParameter("upload-directory") doesn't seem to work:
> // returns an empty string
> var dir = cocoon.context.getInitParameter("upload-directory");
did you uncomment this parameter in web.xml? It's commented by default i
think.
Regards
Jorg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org