From: "Miguel Figueiredo" <[EMAIL PROTECTED]>
Reply-To: "Slide Users Mailing List" <[email protected]>
To: "'Slide Users Mailing List'" <[email protected]>
Subject: RE: how open a document in application web in Jakarta slide
Date: Mon, 7 Nov 2005 09:59:55 -0000
Hello Veronica,
I dont believe its possible to do what you want unless the software
that
interprets the document is webdav-enabled. The solution Vinu presented is
enough to open the document, but the problem you would face next is
catching
automatically the output stream, and writing it to the server. Word for
example, can do it while browsing with webfolders and locking the document
in the process, but if you try to open a jpg file the same way, youll only
be viewing it in read-only mode, not the wanted read-write mode.
There is software, like webdrive, that makes the opening in read-write
mode
transparent. If you have more specific needs than webdrive offers, then you
shall have to write code to catch the outputstream and sending it to the
server, and maybe have the locking and versioning features also enabled
Hope this helps,
Miguel Figueiredo
_____
From: Vinu Varghese [mailto:[EMAIL PROTECTED]
Sent: sábado, 5 de Novembro de 2005 0:59
To: Slide Users Mailing List
Subject: Re: how open a document in application web in Jakarta slide
Hi,
I think u need the clients to open the doc on clicking on some link or
like
on a web page - right?.
If that is the case then u can create an OutputStream of the InputStream.
Then u can set the content type of the response to "application/word" and
write the entire doc into the ServletOutputStream.
Some thing like
response.setContentType("application/word");
response.getOutputStream().write(....) to write the contents
Hope this helps
Thanks
Vinu
veronica ballarta wrote:
Ok..but with this method can i open the file with the correct program?..for
example if i have a doc in word in slide and in my web application i have
the access to this ..this file will be open with word program withh that
method??
From: Vinu Varghese <mailto:[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
Reply-To: "Slide Users Mailing List"
<mailto:[email protected]>
<[email protected]>
To: Slide Users Mailing List <mailto:[email protected]>
<[email protected]>
Subject: Re: how open a document in application web in Jakarta slide
Date: Sat, 05 Nov 2005 03:46:49 +0530
Hi
You can use getMethodData() on a WebResource link
<http://jakarta.apache.org/slide/clientjavadoc/org/apache/webdav/lib/WebdavR
esource.html#getMethodData%28%29>
<http://jakarta.apache.org/slide/clientjavadoc/org/apache/webdav/lib/WebdavR
esource.html#getMethodData%28%29>
also there are other methods that might be usefull getMethodData(String
path)
getMethodDataAsString();
getMethodDataAsString(String path)
Hope this helps
Thanks
Vinu
|*
<http://jakarta.apache.org/slide/clientjavadoc/org/apache/webdav/lib/WebdavR
esource.html#getMethodData%28%29>
<http://jakarta.apache.org/slide/clientjavadoc/org/apache/webdav/lib/WebdavR
esource.html#getMethodData%28%29>*|veronica ballarta wrote:
Somebody knows the method to open a document in jakarta slide at web..for
example to put and get is:
to get:webdavresource.getMethod(filename);
to put:webdavresource.putMethod(path,filename);
but to open()??
From: "Laurent Michenaud" <mailto:[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
Reply-To: "Slide Users Mailing List"
<mailto:[email protected]>
<[email protected]>
To: "Slide Users Mailing List" <mailto:[email protected]>
<[email protected]>
Subject: RE: Word documents in read-only with OpenOffice
Date: Thu, 3 Nov 2005 13:57:37 +0100
Yes, the file is in read-only mode.
I'm using :
Slide 2.2 on Windows 2003 Server
My workstation : Windows XP SP2 + OpenOffice 1.1.3
And you ?
-----Message d'origine-----
De : Martin Delgado [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 3 novembre 2005 13:24
À : Slide Users Mailing List
Objet : RE: Word documents in read-only with OpenOffice
Are you sure the files are read only in Open Office?
I just tried to update an open office doc and it
worked. However, it still gave me a "secondary"
prompt when saving because it was saving to a doc file
and not open office.
BTW, to implement Web Folders, Open Office should be
using the OLE DB Provider for Internet Publishing.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipubsdk/htm
l/ipubbyb0.asp
--- Laurent Michenaud <mailto:[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
wrote:
> The user has write permission on the web folder.
> If I open the document with Word, I can update it.
> If I open the document with OO, I can't because
> It is read only.
>
>
> -----Message d'origine-----
> De : Martin Delgado [mailto:[EMAIL PROTECTED]
> Envoyé : jeudi 3 novembre 2005 12:48
> À : Slide Users Mailing List
> Objet : Re: Word documents in read-only with
> OpenOffice
>
> >
> >
> > 1) When i opened word documents with OpenOffice (
> > via web folder ), they
> > are in read-only.
> >
> > Is it a slide issue or an openoffice issue ?
>
> It's probably a permissions issue with your system.
> How are you running Slide/Tomcat? The user that
> Slide's running as has to have write privileges for
> the files it wants to write.
>
> >
> > 2) I can't open openoffice document using web
> > folders. Do I have to
> > configure something
> >
> > in slide ?
>
> OpenOffice doesn't support Webdav properly inside MS
> Windows. To use it, you have to set
> Tools/Options/General Use OpenOffice.org dialogs.
> Then you have to punch in the URL. It doesn't
> support
> browsing.
>
> I think there's some kind of Mime-ish setting on
> Windows that OpenOffice is supposed to do to use Web
> Folders that it's not doing.
>
>
>
>
>
>
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com
>
>
---------------------------------------------------------------------
> 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]
>
>
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
---------------------------------------------------------------------
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]
--
Vinu Varghese
[ Good is not Good when better is Expected ]
My Email : [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
<mailto:[EMAIL PROTECTED]>
My Web : www.vinusweb.com <http://www.vinusweb.com>
<http://www.vinusweb.com>
------------------------------------------------------------------------
X /minds /
*Solutions Unfolded*
[www.x-minds.org <http://www.x-minds.org> <http://www.x-minds.org>]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Vinu Varghese
[ Good is not Good when better is Expected ]
My Email : [EMAIL PROTECTED]
My Web : www.vinusweb.com
_____
X minds
Solutions Unfolded
[www.x-minds.org]