• 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

How to change form's arraylist member's variable value in javascript

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have a scenario where I need to set the value of a variable which is present in a ArrayList which is part of the struts form, in javascript. So I have a class called FeaturesVO which has a boolean called locked. Now on the struts form I have an ArrayList of FeatureVO objects. I am using logic:iterate to iterate through the list on the JSP, checking the value of locked and displaying the corresponding image for each FeatureVO. Now the image for each FeatureVO row needs to act as a toggle for its locked value. So if I click on a image which corresponds to a FeatureVO which has its locked value = false, then it should change the value of locked to true. This I need to do without refreshing the page. Can someone please help me with this?

Regards,
Dino
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic