• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Converting javaScript variable to java

 
ramranga Kumar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a javascript variable. I want to write the content of this variable to a text file. Is this possible using javascript ?

or

can we convert the javascript variable to java variable so that I can use the java code to write it to a file.

Thank You.
 
Jan Groth
Ranch Hand
Posts: 456
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
assuming we are talking about client / server web environment:

- why are you not http-posting the variable's content back to the server?

cheers,
jan
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Welcome to JavaRanch!

JavaScript and Java are two entirely different, unrelated languages. This site is primarily about Java, not JavaScript. We do have one JavaScript forum here. I will move this topic there for you; go over and look for it!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the file to be on the client or server?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic