• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

writing from applet to a directory in server

 
Vani Bhatia
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have embedded an open source applet into my web page. If I click on a link called output in the applet, it gives me some text. I would like to copy this output text to a file in some directory in my server. Can anyone tell me how to do this?

Thanks
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The applet could make an HTTP call to a server-side component (like a servlet) that stores the data.
 
Vani Bhatia
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is, I do not have access to applet code. Is there any other way of doing this?
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You said it was an open source applet; how can you not have access to the source code?
 
Vani Bhatia
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry. I will make myself clear. I do not want to make changes in the source code of the applet since a few of us are using the same applet. I would like to achieve this thro javascript-java applet communication. I came to know that this can be done by calling the public methods in applet. But this may not work on all the browsers. Is there any way of doing it that works on all the browsers
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JavaScript-to-Java (also called LiveConnect) only works on public methods, as you said. So unless the applet already contains public methods that return this data, you need to make changes to the applet anyway. But JavaScript can't do anything about storing the data on the server (unless you were planning on doing a JavaScript-initiated form submit).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic