Re: File Uploads additional comment

2003-06-23 Thread juliane ndje
it works! your 'copy file to correct directory and delete from incoming' 
looked similar to my code and that made me look for the mistake at other 
places... found it.
dankeschön and till next
juliane

Alexander Schatten wrote:

Alexander Schatten wrote:

   File from = new File(pdf);
   File to  = new File(targetFilename);
   from.renameTo(to);


I believe, this rename function is only working since JDK 1.4. so if 
you need to use an earlier version, you have to write this by yourself 
eventually.

alex

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


Re: File Uploads

2003-06-23 Thread juliane ndje
hi geoff,
i've seen the wiki pages and also the FileUploadAction in the 
Developer's Handbook (Moczar/Aston). my problem is that i don't want to 
put all the files into one directory but put them into the directory 
named after a project that is to be choosen in a select field (is that 
understandable?). there is a directory for every project and the file 
belongs to exactly one project. therefore the way suggested by alexander 
seemed quite appealing to me.
btw i need this for an app written in 2.0.4
thanx juliane

Geoff Howard wrote:

There is good information about this at the wiki.  Go to 
wiki.cocoondev.org and search for upload.

Geoff

upload-directory does not have to be under WEB-INF - it can be 
relative or absolute anywhere on your system.  relative paths are 
resolved from the servlet context - which is the main directory of 
cocoon.

Geoff

At 08:20 AM 6/23/2003, you wrote:

hello alexander,
does your offer still exist? seems this is exactly what i have to do 
next and you could save me some time ;-)
thanx a lot!
juliane

Alexander Schatten wrote:

well, I changed the parameter in the WEB-INF/web.xml:

   
 upload-directory
 WEB-INF/work/upload-dir
   
and it works, but I am not sure, whether this directory has to be 
below WEB-INF?

however, one general remark: you must not forget, that this is a 
general setting for *all* Cocoon applications. So what I do is, that 
is set the directory as mentioned above, and in the cocoon 
application I use an XSP file to move an uploaded file into the 
projects destination directory, which seems to work pretty good and 
is rather easy to implement.

If you like, I could provide this XSP for you.

Alex

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



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


Re: File Uploads

2003-06-23 Thread juliane ndje
hello alexander,
does your offer still exist? seems this is exactly what i have to do 
next and you could save me some time ;-)
thanx a lot!
juliane

Alexander Schatten wrote:

well, I changed the parameter in the WEB-INF/web.xml:

   
 upload-directory
 WEB-INF/work/upload-dir
   
and it works, but I am not sure, whether this directory has to be 
below WEB-INF?

however, one general remark: you must not forget, that this is a 
general setting for *all* Cocoon applications. So what I do is, that 
is set the directory as mentioned above, and in the cocoon application 
I use an XSP file to move an uploaded file into the projects 
destination directory, which seems to work pretty good and is rather 
easy to implement.

If you like, I could provide this XSP for you.

Alex

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


Re: Any Cocoon People in Berlin, Germany?

2003-03-24 Thread Juliane Ndje

- Original Message -
From: "Ines Robbers" <[EMAIL PROTECTED]>
To: "Cocoon Mailingliste" <[EMAIL PROTECTED]>
Sent: Friday, March 21, 2003 6:32 PM
Subject: Any Cocoon People in Berlin, Germany?


> Hallo!
>
> Gibt es hier in der Liste Cocoon-Kenner aus Berlin?
> Ich bin auf der Suche nach MitstreiterInnen für ein Gründungsprojekt.
>
> Freue mich auf Antwort!
>
> Ines
>
>
>
> Hi there,
>
> Are there any people from Berlin working with Cocoon and interested in
> meeting up?
>
> Ines
>
 when and where?
juli
>
> -
> 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]



eclipse: cocoon test view

2003-03-14 Thread Juliane Ndje




hi guys,
after developing cocoon apps simply with spy i 
wanted to switch over to eclipse for better comfort. a problem occured with the 
'cocoon test view': while trying to perform requests with opening a browser the 
resources will be looked after in the directory C:\Dokumente und 
Einstellungen\jule\Lokale Einstellungen\Temp\httptest.html. is that intended 
(cause i am able to see the cocoon welcome-page) and just something wrong 
with the place i stored my data? on the other hand there is no trouble 
starting the req directly in the browser...so what to do?
thanx
juli