• 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

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
reply
    Bookmark Topic Watch Topic
  • New Topic