Pass a String array in a javascript from jsp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rameshkumarc
    New Member
    • Jan 2007
    • 14

    #1

    Pass a String array in a javascript from jsp

    how to Pass a String array in a javascript from jsp
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by rameshkumarc
    how to Pass a String array in a javascript from jsp
    Create a hidden select and use the array values as options for the select.

    Comment

    • rameshkumarc
      New Member
      • Jan 2007
      • 14

      #3
      thx for ur reply...i can pass the array value from jsp to javascript..... .but when i m retrieving the value there it's coming as an object....how can i convert the object to string format....

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by rameshkumarc
        thx for ur reply...i can pass the array value from jsp to javascript..... .but when i m retrieving the value there it's coming as an object....how can i convert the object to string format....
        Did you try toString()?

        Comment

        Working...