See comments below:

>>> [EMAIL PROTECTED] 7/6/2004 11:28:40 AM >>>
Hello,

Michael Oliver wrote:

>Is there a posibility to provide a functionality to allow the user 
>to click on a resource in order to edit and _save_ the file back into

>the repository?
>[Mike Oliver>>] Huh?  You should learn more about WebDAV because that
is
>exactly what you do in a WebFolder or from a Microsoft Office
>application accessing Slide.
>  
>
Don't ou laugh. I just could not imagine how to show to the user a form

when he or she is saving a document into the repository. Maybe I don't

know all features of MS Office or OpenOffice.org (both supporting 
WebDAV). Uploading therefore should look like this for example:
Client (browser) requests a web page /upload.do in order to handle the

upload. When it is called without parameters it forwards to the form, 
when the user enters properties and selects the document to upload.
Then 
the form calls again /upload.do - now with parameters (properties and 
the file itself). Action servlet handles the request, forms WebDAV 
request using client software and makes the request saving the
described 
file into the repository. It is clear - correct me if I am wrong.

[James>>]
This should work. The only problem there is the web generally provides
a very poor interface for uploading files. A native webdav client
(WebFolders, kfm, etc.) is generally friendly to use.
====


The second thing is searching: done for example by /search.do action.
It 
gets the query string from parameters, prepares DAV request and using 
client library for WebDAV calls the respository - gets in return list
of 
files that match the query, produces then HTML page containing the 
results. It is clear also (I think I am right).
But wen we e.g. open a file from this result list by clicking, edit it

into MS Office or OOo and try to save it back into the repository - how

could the action servlet that handles the update action show the form
to 
fill the properties in again? I don't understand that :(

[James>>]
The editing application (MS Office or OOo) will *not* use the Servlet
you write, instead it will communicate directly with Slide. Both office
suites support WebDAV natively and can LOCK, GET, PUT and UNLOCK files
directly on the server. The only trick is getting the office suite to
open the file directly. With Internet Explorer you can use ActiveX
objects to force an application to load the file (there was a post on
this list awhile back with example code for that). With other browsers I
don't know how to accomplish this.
====


 Does MS Office 
or OOo support special forms generated from some - let's say - 
"template" got from server to be filled when saving files into the 
repository? Or maybe there is a posibility to force open the form just

after saving the file?

[James>>]
This is trickier. Since you're using two separate applications it will
be hard to "force" the user to go to another application to enter the
properties. Using the event framework you could schedule a task for a
user and have the web client periodically check for pending tasks and
pop-up a form for the user...
The other option is to use the built-in property fields in the
different office suites. You won't have a friendly editing form, but
Slide can extract the information from the file when it is submitted.
====

 And the last thing: how our action servlet can 
handle the DAV request and produce HTML forms in the same time?

[James>>]
It doesn't. WebDAV requests go directly to Slide's WebDAV servlet.
====

Thanks for the answers. :)

--
Greetings,                       --== registered linux user #230042
==--
Pawel Garbacz <[EMAIL PROTECTED]>    --== ICQ 111972667 :: GG 2532007
==--

[James>>]
-James
====

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

Reply via email to