Annu Singh wrote:
>
> Hi All,
>
>         Using  java applets,  I am able to read file from server but not
> able to write output file to server.
>         Here Server is the machine from which the Applet has been
> downloaded.
>
>         I want to know how I will write files to server using applets. This
> should be possible but using
>         servlets but the requirement for this particular page is such that ,
> I have to use an Applet to write
>         the file at the server.
>
>         Any kind of help or a pointer is welcome.
>
>         Thanks in advance.

You cannot write files to server's filesystem from applets
executed on clients, it is clear. But I think it can be done
by one of three ways:

1) applet can call a servlet to save the file
2) applet can call CGI program to save the file
3) applet can use HTTP method PUT to store the file to WWW server

PUT method is not implemented by all WWW servers, I know
Netscape Enterpise server supports it.

I think the easiest way for you will be to call a CGI
program.

Martin
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   INET, a.s.                          Mgr. Martin Kuba
Kralovopolska 139                  e-mail: [EMAIL PROTECTED]
  601 12 Brno                      WWW: http://www.inet.cz/~makub/
 Czech Republic                    tel: +420-5-41242414/33
--------------------------------------------------------------------
PGP fingerprint = D8 57 47 E5 36 D2 C1 A1  C3 48 B2 59 00 58 42 27
 http://wwwkeys.cz.pgp.net:11371/pks/lookup?op=index&search=makub
--------------------------------------------------------------------

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to