• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

converting class variable to javascript variable

 
puja shaw
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there a way in which i can convert class variable to javascript variable.If so how..?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What class variable? In a Java class? Please TellTheDetails -- we can't guess what you are doing.
 
puja shaw
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:What class variable? In a Java class? Please TellTheDetails -- we can't guess what you are doing.



java class variable.Mr bill i am getting only questions and suggestions from you rather than solutions.Sorry to say this but its true.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you do not provide enough details to answer your question, then in order to help you, more questions need to be asked. If you want help, you will answer those questions. Otherwise, it's hard to provide any help.

"Mr bill"?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If this is in a JSP (guessing), than you cannot really "convert" the value, but you can use JSP to dynamically create the JavaScript code to create a JavaScript variable with the same value.

For example:
If the value of someScopedVariable is (let's say) 213, the result would be the following in the HTML sent to the browser: var aVariable = 213;
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic