That sounds about right.

>>> [EMAIL PROTECTED] 7/14/2004 8:59:42 AM >>>
thanks, your description is very clear.

actually, the WebDAV do work in server side, it pass the inputstream to
or 
get outputstream from web browser. the download and upload process
between 
client and server is handled by http request/response, right?




>From: "James Mason" <[EMAIL PROTECTED]>
>Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: Re: webdav in Jsp??
>Date: Wed, 14 Jul 2004 07:49:04 -0700
>
>The basic concept here is that your .jsp application translates plain
>HTTP requests into WebDAV requests to Slide. When the web browser
>requests a file you execute a getMethod() on a WebdavResource to
fetch
>the file from Slide, then you stream the resulting file to the web
>browser in the response. For puts it's the same thing. The .jsp
receives
>a form post from a web browser, extracts the file contents from the
>request, then uses that data to perform a putMethod on the Slide
>server.
>
>I'd recommend using getMethodData() rather than getMethod() since
>getMethodData() returns an InputStream. If you use getMethod() you'll
>need to create a temporary file to hold the data before you stream it
to
>the client. With getMethodData() you can skip that step.
>
>-James
>
> >>> [EMAIL PROTECTED] 7/14/2004 1:41:52 AM >>>
>hi,
>
>thx for your reply fisrt. the architecture you said is what I want,
but
>I
>wonder how to do that.
>
>for example, I want to use the getMethod from WebdavResource class to
>download file in slide. but if I write the getMethod in jsp page,
>actually
>,the jsp page runs  in jsp container(server side), the getMethod
>process in
>server slide too!!(is it right?) then the webrower user still cannot
>download the file, right??
>
>I think I may have misunderstand the machanism of webdav, so could
you
>help
>me?
>
>
>jingrui
>
>
> >From: "James Mason" <[EMAIL PROTECTED]>
> >Reply-To: "Slide Users Mailing List"
<[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Subject: Re: webdav in Jsp??
> >Date: Tue, 13 Jul 2004 08:29:04 -0700
> >
> >What you're wanting to do is very possible. The architecture will
>look
> >something like this.
> >
> >   WebBrowser
> >        |
> >        v
> >   Servlet Container (jsp and Slide client)
> >        |
> >        v
> >   Slide Server
> >
> >So your jsp is both a client *and* a server. What you have to do is
>map
> >the different methods in the Slide client api to the browser
> >interactions your webapp provides.
> >
> >One thing I'd recommend is using the WebdavResource class directly,
> >rather than using the Client class. You'll find things a lot easier
>that
> >way.
> >
> >-James
> >
> > >>> [EMAIL PROTECTED] 7/13/2004 1:53:29 AM >>>
> >hi,
> >
> >I have tried to use the webdav client api to write client
>application.
> >now I
> >want to use the webdav client api in jsp. However, as I know, the
jsp
> >page
> >works in server side, it means if I use the putmethod of
webdavsource
> >class
> >to download a file, the file would only downlaod to some place of
> >server!
> >
> >I think there may be many people have used the webdav client api in
> >jsp,
> >could someone tell me how to use it??
> >
> >thanks very much.
> >
> >_________________________________________________________________
> >Protect your PC - get McAfee.com VirusScan Online
> >http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 
> >
> >
>
>---------------------------------------------------------------------
> >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]

> >
>
>_________________________________________________________________
>MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
>http://join.msn.com/?page=features/virus 
>
>
>---------------------------------------------------------------------
>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] 
>

_________________________________________________________________
$)GKjFnE`RLD8^2DKN{1NDM?MG5K71T* MSN Hotmail!$  http://www.hotmail.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]

Reply via email to