>
> The context returned by cocoon.context is not the Avalon context it's
> the environment context which is mapped to the servlet context.
So cocoon.context.getAttribute(org.apache.cocoon.Constants.CONTEXT_WORK_DIR)
works or does not work according the above? I thought it just should work the
way I mailed it [cocoon.context.getAttribute(Constants.CONTEXT_WORK_DIR)]
(though the org.apache.cocoon i meant implicitely because you might have
equally well imported the class and use Constants.CONTEXT_WORK_DIR)
Ard
>
> Carsten
>
> Jeroen Reijn wrote:
> > Hi Tobia,
> >
> > after a bit of exploring I can confirm your experience with
> the null
> > value. I'm not sure yet why this happens, but after listing all the
> > AttributeNames attached to the context you could try to use the
> > following line:
> >
> > print("workDir: " +
> > cocoon.context.getAttribute("javax.servlet.context.tempdir"));
> >
> > Kind regards,
> >
> > Jeroen Reijn
> >
> > Tobia wrote:
> >> Ard Schrijvers wrote:
> >>>> How can I obtain the following object from flowscript?
> >>>>
> >>>> (java.io.File) context.get(Constants.CONTEXT_WORK_DIR)
> >>> cocoon.context.getAttribute(Constants.CONTEXT_WORK_DIR)
> should do the trick
> >> Actually:
> >>
> >>
> cocoon.context.getAttribute(org.apache.cocoon.Constants.CONTEX
> T_WORK_DIR)
> >>
> >> but it's not working, it returns null.
> >>
> >>
> >> Tobia
> >>
> >>
> ---------------------------------------------------------------------
> >> 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]
> >
>
>
> --
> Carsten Ziegeler
> http://www.osoco.org/weblogs/rael/
>
> ---------------------------------------------------------------------
> 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]