You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Roberto Marra <rm...@montefiore.ch> on 2005/07/13 10:21:33 UTC

Input modules

Hi guys,
Im trying to read the contextPath in the flow. In my sitemap I got this:

<map:match pattern="**.lista">
<map:call function="{1}ls">
<map:parameter name="form-name" value="{1}"/>
<map:parameter name="contextPath" value="{request:contextPath}"/>
</map:call>
</map:match>

In the flow I try to read with:

var contesto = cocoon.parameters["contextPath"];

but "contesto" is empty. Anybody knows why?

Thanx in advance
Roberto





Re: Re: Input modules

Posted by ho...@armacell.com.
I have no clue concerning Flow, but have you tried

var param = cocoon.parameters.contextPath 

or

var param = cocoon.parameters['contextPath ']


Just an idea...
HTH

users-return-80931-holger.willenborg=armacell.com@cocoon.apache.org 
schrieb am 13.07.2005 11:07:04:

> Actually any of the RequestModule Accessor gave me back a value, is 
> always empty. I try with different like:
> 
> contextPath
> method
> protocol
> remoteAddr
> requestURI
> scheme
> serverName
> sitemapURI
> 
> all of those are empty!! Quite strange isn't? Any suggestion?
> 
> 
> 
> 
> 
> 
> ----- Original Message ----- 
> From: Roberto Marra 
> To: users@cocoon.apache.org 
> Sent: Wednesday, July 13, 2005 10:21 AM
> Subject: Input modules
> 
> Hi guys,
> Im trying to read the contextPath in the flow. In my sitemap I got this:
> 
> <map:match pattern="**.lista">
> <map:call function="{1}ls">
> <map:parameter name="form-name" value="{1}"/>
> <map:parameter name="contextPath" value="{request:contextPath}"/>
> </map:call>
> </map:match>
> 
> In the flow I try to read with:
> 
> var contesto = cocoon.parameters["contextPath"];
> 
> but "contesto" is empty. Anybody knows why?
> 
> Thanx in advance
> Roberto
> 
> 
> 
> 
> 

Re: Input modules

Posted by Roberto Marra <rm...@montefiore.ch>.
Actually any of the RequestModule Accessor gave me back a value, is always empty. I try with different like:

contextPath
method
protocol
remoteAddr
requestURI
scheme
serverName
sitemapURI

all of those are empty!! Quite strange isn't? Any suggestion?






  ----- Original Message ----- 
  From: Roberto Marra 
  To: users@cocoon.apache.org 
  Sent: Wednesday, July 13, 2005 10:21 AM
  Subject: Input modules


  Hi guys,
  Im trying to read the contextPath in the flow. In my sitemap I got this:

  <map:match pattern="**.lista">
  <map:call function="{1}ls">
  <map:parameter name="form-name" value="{1}"/>
  <map:parameter name="contextPath" value="{request:contextPath}"/>
  </map:call>
  </map:match>

  In the flow I try to read with:

  var contesto = cocoon.parameters["contextPath"];

  but "contesto" is empty. Anybody knows why?

  Thanx in advance
  Roberto





Re: Input modules[SOLVED]

Posted by Roberto Marra <rm...@montefiore.ch>.
I don't know what happen I mean I reebooted coocon & now it works.

Thanx in any case
Cheers
Roberto
  ----- Original Message ----- 
  From: Roberto Marra 
  To: users@cocoon.apache.org 
  Sent: Wednesday, July 13, 2005 10:21 AM
  Subject: Input modules


  Hi guys,
  Im trying to read the contextPath in the flow. In my sitemap I got this:

  <map:match pattern="**.lista">
  <map:call function="{1}ls">
  <map:parameter name="form-name" value="{1}"/>
  <map:parameter name="contextPath" value="{request:contextPath}"/>
  </map:call>
  </map:match>

  In the flow I try to read with:

  var contesto = cocoon.parameters["contextPath"];

  but "contesto" is empty. Anybody knows why?

  Thanx in advance
  Roberto