upload xsp does reference the setting:
File uploadDir = null;
/** Contextualize this class */
public void contextualize(Context context) throws ContextException {
uploadDir = (File) context.get(Constants.CONTEXT_UPLOAD_DIR);
}
When cocoon starts up, it places the value of the upload-directory parameter
from web.xml in the context, and it is used in various places, including
upload.xsp. The only reason it's needed there is to show a directory
listing. Cocoon by default is configured to automatically place any file(s)
uploaded as a part of _any_ request in that directory. There are some
additional configuration options available in 2.0.4 and 2.1dev
So, the short answer is: change it in web.xml and that's all you need.
Geoff Howard
> -----Original Message-----
> From: Olivier GUCKERT [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 13, 2002 4:27 AM
> To: Cocoon-user
> Subject: upload-dir
>
>
> Hello
>
> I want to use the upload.xsp, but i need to configure different
> upload-dir.
>
>
> I see that there is a parameter in web.xml :
> <param-name>upload-directory</param-name>
> <param-value>/WEB-INF/work/upload-dir</param-value>
>
> but there's no reference to this parameter in the upload.xsp
>
> Does any-one know how to do it ?
>
> Thanks
>
> Olivier GUCKERT
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>