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.CONTEXT_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]

Reply via email to