cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jarry Liu <javast...@gmail.com>
Subject Re: question about control flow
Date Thu, 07 Jul 2005 22:02:12 GMT
I tried several functions, such as getParameter("filename"), but it
doesn't work. Finally I solved my problem by tracking the sitemap
instead of pass argument in function call. I used
getRequest().getSitemapURI().

Thanks.



On 7/7/05, Daniel McOrmond <dmcormond@gmail.com> wrote:
> Hi Jarry,
> 
> To access sitemap parameters in JavaFlow, you could try something like this:
> 
> 
> import org.apache.avalon.framework.parameters.Parameters;
> import org.apache.cocoon.components.flow.java.Continuation;
> import org.apache.cocoon.components.flow.java.ContinuationContext;
> 
> <snip/>
> 
> ContinuationContext context = (ContinuationContext)
> Continuation.currentContinuation().getContext();
> Parameters parameters = context.getParameters();
> String foo = parameters.getParameter( "foo" );
> 
> 
> HTH,
> 
> -Daniel
> 
> 
> On 7/7/05, Jarry Liu <javastone@gmail.com> wrote:
> > Hi,
> >
> >   I just checked again and found I can pass argument as following.
> >          <map:call function="process">
> >              <map:parameter name="filename" value="problem6"/>
> >           </map:call>
> >  If using javascript, I can get the value of filename by
> >        var param = cocoon.parameters.filename;
> >
> > But how can I get it if I use java instead of javascript.
> >
> >
> > Jarry
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message