Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

writing from applet to a directory in server

 
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
 
Rancher
Posts: 43016
76
  • 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: 43016
76
  • 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: 43016
76
  • 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).
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic