Hello!

We try to unterstand the init()-methode of CocoonServlet. There we found
the following snippet:


// first init the work-directory for the logger.
// this is required if we are running inside a war file!
final String workDirParam = conf.getInitParameter("work-directory");
        if ((workDirParam != null) && (!workDirParam.trim().equals(""))) {
            if (this.servletContextPath == null) {
                this.workDir = new File(workDirParam);
            } else {
                this.workDir = IOUtils.createFile( new
File(servletContextPath) , workDirParam);
            }
            this.workDir.mkdirs();
        } else {
            this.workDir = (File)
this.servletContext.getAttribute("javax.servlet.context.tempdir");
            this.workDir = new File(workDir, "cocoon-files");
            this.workDir.mkdirs();
        }

But after execution, we don't find the /WEB-INF/work directory. We don't
find the entry in the web.xml (<init-param> <param-name> work-directory
... /WEB-INF/work ...), too.
We thought this snippet create some file anyway, because of the
mkdirs()-methode in the else-clause.  Or did we misunderstand something?

greetings
nicole & lars




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to