About accessing versions

2005-11-08 Thread Gaurav Kanade
Hi
I am using Slide Server and the WebDAV client application. Thing is when I
use the client app I can see and access all the versions of a resource but
when I try to view them through a browser, once I enter the history folder I
cant really access them - I also tried to do so programatically and I get an
error
 Any ideas ?
 Thanks
Gaurav

--
Gau
http://gamesupreme.blogspot.com


Re: how get files in clients???

2005-11-08 Thread Vinu Varghese
Title: Vinu Varghese




Hi Veronica ,

 I don't think in a web application scenario u can force a client to
place a file in a particular drive of his system, as the clients may
differ in their nature ie; Some may be using Linux and some may windows.

Pls correct me if I am wrong :-)

Thanks 
Vinu

veronica ballarta wrote:
ok thanks!! i have other question..this is my code to get
files...but it works only in my machine..but in clients machinee it
doesn't..i supossed that is because the File path..but how can i
indicate the i like download file in drive c of client machine
  
Please help
  
HttpURL hrl =
  
  new
HttpURL("http://localhost:8080/slide/files/JPR/fluyo/"+ recurso);
  
  hrl.setUserInfo("fluyo","fluyo");
  
  WebdavResource wdr =new WebdavResource(hrl);
  
  File fn = new File("C:/"+recurso);<--here
  
  wdr.getMethod(fn);
  
 System.out.println("inside test "+wdr.getPath());
  
  
  
  
-
  
To unsubscribe, e-mail: [EMAIL PROTECTED]
  
For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  


-- 







  

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

  







how get files in clients???

2005-11-08 Thread veronica ballarta
ok thanks!! i have other question..this is my code to get files...but it 
works only in my machine..but in clients machinee it doesn't..i supossed 
that is because the File path..but how can i indicate the i like download 
file in drive c of client machine

Please help
HttpURL hrl =
	  new HttpURL("http://localhost:8080/slide/files/JPR/fluyo/"+ 
recurso);

  hrl.setUserInfo("fluyo","fluyo");
  WebdavResource wdr =new WebdavResource(hrl);
  File fn = new File("C:/"+recurso);<--here
  wdr.getMethod(fn);
 System.out.println("inside test "+wdr.getPath());



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



transaction trouble?

2005-11-08 Thread slide . user

Hi all,

I'm fannying about with the WCK. Used the FileStore as a base for my own
class. The propfind seems to work, I do get a directory listing (yeah!).
When I try to open something however, I get an error (in MS-Word in my
case). Adding logging and debugging I found out that in both my GET and my
LOCK methods I get a rollback. Looking further into it, leads me to the
following code:

   } finally {
   if (!slideToken.isExternalTransaction() &&
transactionIsStarted) {
   // Something went wrong, we are here and the TA is still open
   try {
   token.rollback();
   } catch (Exception e) {
  // TODO
  e.printStackTrace();
   }
   }

Has anybody got any pointers as how to manage the transaction? Do I have
to configure anything in the Domain.xml??

Groeten,

Friso



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



Re: how open a document in application web in Jakarta slide

2005-11-08 Thread Vinu Varghese
Title: Vinu Varghese




Hi veronica,
 I am not sure about the content type of a open office document. Any
way just check this link : http://framework.openoffice.org/documentation/mimetypes/mimetypes.html

Hope this will give some light in finding the content type :-)

Thanks
Vinu

veronica ballarta wrote:
Thanks you Vinuand how can i do with open office
document??
  
  
response.setContentType("application/??");
  
  
  
  From: Vinu Varghese
<[EMAIL PROTECTED]>

Reply-To: "Slide Users Mailing List"


To: Slide Users Mailing List 

Subject: Re: how open a document in application web in Jakarta slide

Date: Tue, 08 Nov 2005 06:09:23 +0530


Hi Veronica,

change the content type to  text/plain. for text file


ie: response.setContentType("text/plain");




Thanks

Vinu


veronica ballarta wrote:


Thank Vinui put this code in my
servlet..but it doesn't work..i call the servlet in the link of my web
page...but it doesn't open the program..in the case of txt file what
can be in the response.setContenType..only to display my fle
  
  
  From: Vinu Varghese
<[EMAIL PROTECTED]>

Reply-To: "Slide Users Mailing List"


To: Slide Users Mailing List 

Subject: Re: how open a document in application web in Jakarta slide

Date: Tue, 08 Nov 2005 02:31:52 +0530


Hi Veronica,

You can put response.setContenType("application/word"); // Make sure
that the doc you're accessing is a Word doc, I see a .txt file :-)

Just before the OutputStream :

ie:

response.setContentType("application/word");

OutputStream oStream = response.getOutputStream();

 the remaining code.


Hope this helps


thanks

Vinu




veronica ballarta wrote:


Ok..=D Vinu..thanks a lot...so i have
this now:
  
  
HttpURL hrl =
  
  new
HttpURL("http://localhost:8080/slide/files/JPR/fluyo/HOLA.txt");
  
  hrl.setUserInfo("fluyo","fluyo");
  
  WebdavResource wdr =new WebdavResource(hrl);
  
    InputStream iStream = wdr.getMethodData() ;// Code to get the input
stream
  
 OutputStream oStream = response.getOutputStream(); // response
is HttpServletResponse
  
 byte buffer[] = new byte[1024];
  
 int len;
  
 while((len=iStream.read(buffer))>0)
  
    {
  
    oStream.write(buffer,0,len);
  
    }
  
  
    iStream.close();
  
    oStream.close();
  
  
but where can i put this or tell that the file is going to be open with
word:i supposed with this line but where i put??
  
response.setContentType("application/word");
  
  
  
  From: Vinu Varghese
<[EMAIL PROTECTED]>

Reply-To: "Slide Users Mailing List"


To: Slide Users Mailing List 

Subject: Re: how open a document in application web in Jakarta slide

Date: Tue, 08 Nov 2005 01:38:30 +0530


Hi Veronica,


U can write to an OutputStream from an InputStream as follows :



InputStream iStream = . ;// Code to get the input stream

OutputStream oStream = response.getOutputStream(); // response is
HttpServletResponse

byte buffer[] = new byte[1024];

int len;

while((len=iStream.read(buffer))>0)

{

   oStream.write(buffer,0,len);

}

iStream.close();

oStream.close();

// no code should be there after this (ie: nothing should be written to
the outputStream once it is closed)


Hope this helps

Thanks

Vinu

[ By the way my name is VINU not VIRU  :-) ]


veronica ballarta wrote:


OK THANKS A LOT MIGUEL AND
VIRU.ABOUT WEBDRIVE CAN BE A GOOD IDEA BUT IS NOT TOTALLY
FREEAND HOW can i create an OutputStream of the InputStream??
  
  
  
  
  From: "Miguel Figueiredo"
<[EMAIL PROTECTED]>

Reply-To: "Slide Users Mailing List"


To: "'Slide Users Mailing List'" 

Subject: RE: how open a document in application web in Jakarta slide

Date: Mon, 7 Nov 2005 09:59:55 -




 Hello Veronica,




 I don't believe it's possible to do what you want unless the software
that

interprets the document is

Re: how open a document in application web in Jakarta slide

2005-11-08 Thread veronica ballarta

Thanks you Vinuand how can i do with open office document??

response.setContentType("application/??");



From: Vinu Varghese <[EMAIL PROTECTED]>
Reply-To: "Slide Users Mailing List" 
To: Slide Users Mailing List 
Subject: Re: how open a document in application web in Jakarta slide
Date: Tue, 08 Nov 2005 06:09:23 +0530

Hi Veronica,
change the content type to  text/plain. for text file

ie: response.setContentType("text/plain");



Thanks
Vinu

veronica ballarta wrote:

Thank Vinui put this code in my servlet..but it doesn't work..i 
call the servlet in the link of my web page...but it doesn't open the 
program..in the case of txt file what can be in the 
response.setContenType..only to display my fle



From: Vinu Varghese <[EMAIL PROTECTED]>
Reply-To: "Slide Users Mailing List" 
To: Slide Users Mailing List 
Subject: Re: how open a document in application web in Jakarta slide
Date: Tue, 08 Nov 2005 02:31:52 +0530

Hi Veronica,
You can put response.setContenType("application/word"); // Make sure that 
the doc you're accessing is a Word doc, I see a .txt file :-)

Just before the OutputStream :
ie:
response.setContentType("application/word");
OutputStream oStream = response.getOutputStream();
 the remaining code.

Hope this helps

thanks
Vinu



veronica ballarta wrote:


Ok..=D Vinu..thanks a lot...so i have this now:

HttpURL hrl =
  new 
HttpURL("http://localhost:8080/slide/files/JPR/fluyo/HOLA.txt";);

  hrl.setUserInfo("fluyo","fluyo");
  WebdavResource wdr =new WebdavResource(hrl);
InputStream iStream = wdr.getMethodData() ;// Code to get the input 
stream
 OutputStream oStream = response.getOutputStream(); // response 
is HttpServletResponse

 byte buffer[] = new byte[1024];
 int len;
 while((len=iStream.read(buffer))>0)
{
oStream.write(buffer,0,len);
}

iStream.close();
oStream.close();

but where can i put this or tell that the file is going to be open with 
word:i supposed with this line but where i put??

response.setContentType("application/word");



From: Vinu Varghese <[EMAIL PROTECTED]>
Reply-To: "Slide Users Mailing List" 
To: Slide Users Mailing List 
Subject: Re: how open a document in application web in Jakarta slide
Date: Tue, 08 Nov 2005 01:38:30 +0530

Hi Veronica,

U can write to an OutputStream from an InputStream as follows :


InputStream iStream = . ;// Code to get the input stream
OutputStream oStream = response.getOutputStream(); // response is 
HttpServletResponse

byte buffer[] = new byte[1024];
int len;
while((len=iStream.read(buffer))>0)
{
   oStream.write(buffer,0,len);
}
iStream.close();
oStream.close();
// no code should be there after this (ie: nothing should be written to 
the outputStream once it is closed)


Hope this helps
Thanks
Vinu
[ By the way my name is VINU not VIRU  :-) ]

veronica ballarta wrote:

OK THANKS A LOT MIGUEL AND VIRU.ABOUT WEBDRIVE CAN BE A GOOD IDEA 
BUT IS NOT TOTALLY FREEAND HOW can i create an OutputStream of the 
InputStream??





From: "Miguel Figueiredo" <[EMAIL PROTECTED]>
Reply-To: "Slide Users Mailing List" 
To: "'Slide Users Mailing List'" 
Subject: RE: how open a document in application web in Jakarta slide
Date: Mon, 7 Nov 2005 09:59:55 -



 Hello Veronica,



 I don't believe it's 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, 
you'll 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?..fo

Re: Fill store with files

2005-11-08 Thread Bart Frackiewicz
no, we have kernels without module support. :-( I found, that cadaver 
can upload multiple files, maybe this works...




Paul Hussein schrieb:

Mount with davfs and use rsync

Bart Frackiewicz wrote:


Hello,

i finished a small application (a CMS) with slide, and now i have to 
copy about 2000 files from the old application (filesystem-based), is 
there a simple way to do this? I have tried to copy the files into the 
slide store and then started tomcat, but slide do not recognized any 
new file.




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



apache modules

2005-11-08 Thread Praehauser Julia
I need mod_authz_user.so very urgent (windows).
Could someone help me?
thx

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



Authentication Problems when using .NET

2005-11-08 Thread Gaurav Kanade
Hi
When I try to connect to the Slide Server using HttpWebRequest object's
method, for some reason I get a WebException for authentication though I
know Im using the correct user name and password. Here it is simply "root"
and "root". Somehow the slide server shows the username null. I know that
despite this it is actually authenticating correctly. Because I can access
the files later - also, if I enter the wrong password deliberately I cant do
the same.
 I just cant understand why I get the WebException and I find it very
puzzling.
 Thanks
Gaurav

--
Gau
http://gamesupreme.blogspot.com


RE: help: can not get version information

2005-11-08 Thread Miguel Figueiredo

Hello Lixin,

 Seems good code from where I stand. Can you get the report method work now?

Best regards,
Miguel 

-Original Message-
From: Lixin Chu [mailto:[EMAIL PROTECTED] 
Sent: terça-feira, 8 de Novembro de 2005 4:15
To: Slide Users Mailing List
Subject: Re: help: can not get version information

>
>  it seems ok, I have checked slide.properties in slide-kernel-2.1b2.jar,
> > and the setting is :
>
> org.apache.slide.versioncontrol=true
 so i assume deltaV is on.
 and also, I can upload a new version with this code:

if (webdavResource.versionControlMethod(path)) {
webdavResource.setPath(path);
succeeded = webdavResource.checkoutMethod();
if (succeeded)
succeeded = webdavResource.putMethod(path, in);
succeeded = webdavResource.checkinMethod();
..
}



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



Re: Fill store with files

2005-11-08 Thread Paul Hussein

Mount with davfs and use rsync

Bart Frackiewicz wrote:


Hello,

i finished a small application (a CMS) with slide, and now i have to 
copy about 2000 files from the old application (filesystem-based), is 
there a simple way to do this? I have tried to copy the files into the 
slide store and then started tomcat, but slide do not recognized any 
new file.


Both applications run on different internet server, so copying via 
Konquerer will be very slow. I am thinking of something like wput or 
rsync.


Thank you for help,

Bart

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



Fill store with files

2005-11-08 Thread Bart Frackiewicz

Hello,

i finished a small application (a CMS) with slide, and now i have to 
copy about 2000 files from the old application (filesystem-based), is 
there a simple way to do this? I have tried to copy the files into the 
slide store and then started tomcat, but slide do not recognized any new 
file.


Both applications run on different internet server, so copying via 
Konquerer will be very slow. I am thinking of something like wput or rsync.


Thank you for help,

Bart

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



slide & https

2005-11-08 Thread Owen Byrne
Hi All,



I've written a webdav client which works fine over http. I'm now trying to
enable it to operate over https and I've hit

problems. I'm using a self-signed RSA certificate and have configured my
webdav-enabled tomcat server to use this cert. (This

works fine as i can access webdav content using other webdav clients). However,
when I try to establish

a webdav resource over https with my own code:



uri="https://localhost:8443/obyrne_test/";;

HttpsURL url = new HttpsURL(uri);

WebdavResource w = new WebdavResource(url,DepthSupport.DEPTH_1);

w.setDebug(4);



if ( w != null){

System.out.println("Webdavresource is not null");

if(!w.getExistence()){

System.out.println("But does not exist");

 }

}



after running, the above code indicates that the webdavresource does not
exist. No exceptions are thrown and no debug

info is displayed. This works absolutely fine when I access it over http:
ie

uri="http://localhost:8080/webdav/";;



I know the content is available over https://localhost:8443/webdav/ as I've
successfully accessed it using other webdav clients -however I do get prompted
with a security alert prompting me
 to accept the certificate -something I don't when running my own code. Is
there a way to do this?



Has anyone else got webdav working with https using a self-signed cert? All
ideas/advice welcome!



Many Thanks for your help,

Owen



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



Re: I am looking slide documantation with code examples....

2005-11-08 Thread kedar
Hi

 

Can u advise,I want Jakarta.apache.slide books with  good examples

 

Have a nice day

Kedar nath