• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java String Array variable in JSP to a javascript function?

 
Ambika Jain
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a javascript functioned defined which accepts a String array as the input. I am not able to do this.

Thanks,
Amba
[ November 21, 2006: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64721
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't. The Java construct exists on the server. The JavaScript executes on the client.

Please read this article for a better understanding of JSP.

What you can do is to use the JSP to write javaScript syntax into the page that re-creates the string array in JavaScript.
[ November 21, 2006: Message edited by: Bear Bibeault ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic