You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Sam <sa...@atnet.net.au> on 2001/10/29 06:31:13 UTC

temp directory

Hi list,
I am writing a custom generator that uses database queries. I would like
to store some temporary state in the servlet temp directory, but I can't
seem to work out how to obtain what directory that is, or even obtain
the ServletContext which could also tell me the same. Can anyone point
me in the right direction?

Many thanks in advance,
Sam


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: temp directory

Posted by Michael McKibben <mm...@ncube.com>.
Sorry if you've already received a reply to this, but the timing of my
apache list mail seems to be lagged...

Did you try getting Constants.CONTEXT_WORK_DIR from the context passed to
your generator via the object model (or if you extend from
ServletGenerator the context is available as a proteted member)?

Regards,

--mike

On Mon, 29 Oct 2001, Sam wrote:

> Hi list,
> I am writing a custom generator that uses database queries. I would like
> to store some temporary state in the servlet temp directory, but I can't
> seem to work out how to obtain what directory that is, or even obtain
> the ServletContext which could also tell me the same. Can anyone point
> me in the right direction?
>
> Many thanks in advance,
> Sam
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>