This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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: 24195


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: 63544

Is the file to be on the client or server?

[Asking smart questions] [About Bear] [Books by Bear]
It is sorta covered in the JavaRanch Style Guide.
subject: Converting javaScript variable to java
jQuery in Action, 3rd edition