cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geoff Howard" <coc...@leverageweb.com>
Subject RE: upload-dir
Date Fri, 13 Dec 2002 14:27:13 GMT
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:Olivier.Guckert@inria.fr]
> 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:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
>
>
>


---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message