This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

parsing the vector object?

 
T sandya
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have one doubt on parsing the java object using the javascript.

below is the scenario:

I have one table like below:

First row is columns and after onwards is the data:


this html table data is created in jsp by reading the vector object.

but i want to know is , when i click the SELECT button i want to get the list of link No's for the selected Name.

already we have the vector object, just we need to write or parse the object using the javascript.

how we can acheive this?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65220
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by T sandya:
just we need to write or parse the object using the javascript.

how we can acheive this?
You can't. The vector does not exist on the client where the JavaScript is executed. You might find this article article helpful in understanding why.

What I usually do in such cases is to use the JSP to generate JavaScript code that will do the appropriate thing when the button is clicked.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic