assigning the value of java variable to javascript variable

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • swapna
    New Member
    • Apr 2006
    • 2

    #1

    assigning the value of java variable to javascript variable

    Hi,
    I have one doubt in my project i.e i should keep the value of java variable
    to javascript variable.

    thanks in advance.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by swapna
    Hi,
    I have one doubt in my project i.e i should keep the value of java variable
    to javascript variable.

    thanks in advance.
    You'll need to provide more information than that. Are you using JSP?

    Comment

    • dmjpro
      Top Contributor
      • Jan 2007
      • 2476

      #3
      if u r using JSP ....

      then in ur HTML page ....

      [code=html]
      <input type = hidden name = test_hidden value = "<%=some_java_v alue%>">
      [/code]

      then access it using JS.
      i think u can do it and also do it for other Server-Side lang.
      best of luck.

      kind regards.
      dmjpro.

      Comment

      Working...