how can a client upload file via an applet

2002-07-16 Thread Serdar BOZDA

hello,
i am trying to write an applet that has an file upload service. Users will able to 
give the full path of their files to the applet (c:\files\file1.txt for instance) as 
input and applet will going to get the contents of this file and write the content to 
the database which is in the server.
how can i accomplish this task?

thanks in advance,

serdar




Re: how can a client upload file via an applet

2002-07-16 Thread Irina Lishchenko

On Tuesday 16 July 2002 09:38, you wrote:
 hello,
 i am trying to write an applet that has an file upload service. Users will
 able to give the full path of their files to the applet (c:\files\file1.txt
 for instance) as input and applet will going to get the contents of this
 file and write the content to the database which is in the server. how can
 i accomplish this task?

 thanks in advance,

 serdar

Actually I think that much easier to acomplish this task through servlet/jsp 
technology. Although if you are very good at applet writing, then may be...

What about servlet or jsp for file uploading. At www.servlets.com you can 
find libraries which are necessary for file uploading and most likely some 
useful articles on this subject.

ilis

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




RE: how can a client upload file via an applet

2002-07-16 Thread andre . powroznik

A problem will be an applet cannot, by default, read a file on the client unless 
explicitely authorized...

Another is it can only communicate with the server it comes from.

-Original Message-
From: Irina Lishchenko [mailto:[EMAIL PROTECTED]]
Sent: 16 July 2002 10:27
To: Tomcat Users List
Subject: Re: how can a client upload file via an applet


On Tuesday 16 July 2002 09:38, you wrote:
 hello,
 i am trying to write an applet that has an file upload service. Users will
 able to give the full path of their files to the applet (c:\files\file1.txt
 for instance) as input and applet will going to get the contents of this
 file and write the content to the database which is in the server. how can
 i accomplish this task?

 thanks in advance,

 serdar

Actually I think that much easier to acomplish this task through servlet/jsp 
technology. Although if you are very good at applet writing, then may be...

What about servlet or jsp for file uploading. At www.servlets.com you can 
find libraries which are necessary for file uploading and most likely some 
useful articles on this subject.

ilis

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

 DISCLAIMER  
This e-mail and any attachments thereto may contain information 
which is confidential and/or protected by intellectual property 
rights and are intended for the sole use of the recipient(s) named above. 
Any use of the information contained herein (including, but not limited to, 
total or partial reproduction, communication or distribution in any form) 
by persons other than the designated recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender either 
by telephone or by e-mail and delete the material from any computer. 
Thank you for your cooperation.


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




Re: how can a client upload file via an applet

2002-07-16 Thread Simon T

Hi,
this is an example of  html code for the file upload

form ACTION=servlet/UploadTest ENCTYPE=multipart/form-data METHOD=POST
Which file do you want to upload? input TYPE=FILE NAME=file

input TYPE=SUBMIT VALUE=Add File
/form


You just need a servlet to the processing.

I did a google search and got this url.
http://www.jguru.com/faq/view.jsp?EID=160

Regards,
Simon

[EMAIL PROTECTED] wrote:

A problem will be an applet cannot, by default, read a file on the client unless 
explicitely authorized...

Another is it can only communicate with the server it comes from.

-Original Message-
From: Irina Lishchenko [mailto:[EMAIL PROTECTED]]
Sent: 16 July 2002 10:27
To: Tomcat Users List
Subject: Re: how can a client upload file via an applet


On Tuesday 16 July 2002 09:38, you wrote:
  

hello,
i am trying to write an applet that has an file upload service. Users will
able to give the full path of their files to the applet (c:\files\file1.txt
for instance) as input and applet will going to get the contents of this
file and write the content to the database which is in the server. how can
i accomplish this task?

thanks in advance,

serdar



Actually I think that much easier to acomplish this task through servlet/jsp 
technology. Although if you are very good at applet writing, then may be...

What about servlet or jsp for file uploading. At www.servlets.com you can 
find libraries which are necessary for file uploading and most likely some 
useful articles on this subject.

ilis

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

 DISCLAIMER  
This e-mail and any attachments thereto may contain information 
which is confidential and/or protected by intellectual property 
rights and are intended for the sole use of the recipient(s) named above. 
Any use of the information contained herein (including, but not limited to, 
total or partial reproduction, communication or distribution in any form) 
by persons other than the designated recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender either 
by telephone or by e-mail and delete the material from any computer. 
Thank you for your cooperation.


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


  





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




Re: how can a client upload file via an applet

2002-07-16 Thread Mehdi . Nejad

You can use jspsmartUpload on page :

http://www.jspsmart.com

Cheers,

Mehdi





Simon T [EMAIL PROTECTED]
16/07/2002 10:10
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Re: how can a client upload file via an applet


Hi,
this is an example of  html code for the file upload

form ACTION=servlet/UploadTest ENCTYPE=multipart/form-data 
METHOD=POST
Which file do you want to upload? input TYPE=FILE NAME=file

input TYPE=SUBMIT VALUE=Add File
/form


You just need a servlet to the processing.

I did a google search and got this url.
http://www.jguru.com/faq/view.jsp?EID=160

Regards,
Simon

[EMAIL PROTECTED] wrote:

A problem will be an applet cannot, by default, read a file on the client 
unless explicitely authorized...

Another is it can only communicate with the server it comes from.

-Original Message-
From: Irina Lishchenko [mailto:[EMAIL PROTECTED]]
Sent: 16 July 2002 10:27
To: Tomcat Users List
Subject: Re: how can a client upload file via an applet


On Tuesday 16 July 2002 09:38, you wrote:
 

hello,
i am trying to write an applet that has an file upload service. Users 
will
able to give the full path of their files to the applet 
(c:\files\file1.txt
for instance) as input and applet will going to get the contents of this
file and write the content to the database which is in the server. how 
can
i accomplish this task?

thanks in advance,

serdar
 


Actually I think that much easier to acomplish this task through 
servlet/jsp 
technology. Although if you are very good at applet writing, then may 
be...

What about servlet or jsp for file uploading. At www.servlets.com you can 

find libraries which are necessary for file uploading and most likely 
some 
useful articles on this subject.

ilis

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

 DISCLAIMER  
This e-mail and any attachments thereto may contain information 
which is confidential and/or protected by intellectual property 
rights and are intended for the sole use of the recipient(s) named above. 

Any use of the information contained herein (including, but not limited 
to, 
total or partial reproduction, communication or distribution in any form) 

by persons other than the designated recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender 
either 
by telephone or by e-mail and delete the material from any computer. 
Thank you for your cooperation.


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


 





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






RE: how can a client upload file via an applet

2002-07-16 Thread John Burgess

The problem with using an applet is that usually it wouldn't have access to
files on the client machine.  The alternative is to use straight html with a
FORM with an input type=file in it which will produce a proper file
selector dialog on the client and then send the file data up to the server.

JavaPro January 2002 has a good article on how to do this, which we have
successfully cannibalised for sending mpx files to our application.

Best Wishes
John Burgess
[EMAIL PROTECTED]
Tel: 01865 718666 
Fax: 01865 718600


-Original Message-
From: Serdar BOZDAG [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 8:38 AM
To: tomcatGroup
Subject: how can a client upload file via an applet


hello,
i am trying to write an applet that has an file upload service. Users will
able to give the full path of their files to the applet (c:\files\file1.txt
for instance) as input and applet will going to get the contents of this
file and write the content to the database which is in the server.
how can i accomplish this task?

thanks in advance,

serdar


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.375 / Virus Database: 210 - Release Date: 10/07/02
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.375 / Virus Database: 210 - Release Date: 10/07/02
 

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