• Post Reply Bookmark Topic Watch Topic
  • New Topic

How Applets create and write text files in server?  RSS feed

 
Bhuvana Raj
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I need to create and write file in the server.I am using JDK 1.5 and Tomcat 5.1.Please help me with a sample code.

Regards,
Bhuvana
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Applets can't write files on the server. You'll need to have some kind of server-side code (e.g. a servlet) to do this. The applet can then access the servlet through HTTP and transfer all data that should be written to the file to the servlet, which in turn does the file I/O.
 
Bhuvana Raj
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks for your reply.

How to achieve this appet-servlet Communication? How to store the text file in server location? It will be helpful for me if there is a sample code/ tutorial.

Regards,
Bhuvana
 
Bhuvana Raj
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Please help to find out a solution for this problem...

Working hard..

Regards,
Bhuvana
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Applet FAQ has some information and links about applet/servlet communication.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!