File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Converting javaScript variable to java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Converting javaScript variable to java " Watch "Converting javaScript variable to java " New topic

Converting javaScript variable to java

ramranga Kumar

Joined: Jul 21, 2006
Posts: 5
I have a javascript variable. I want to write the content of this variable to a text file. Is this possible using javascript ?


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

Joined: Feb 03, 2004
Posts: 456
assuming we are talking about client / server web environment:

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

Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199


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!

[Jess in Action][AskingGoodQuestions]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

Is the file to be on the client or server?

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Converting javaScript variable to java
It's not a secret anymore!