• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

parsing the vector object?

 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic