• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Accessing indexed properties or Javabean values from JavaScript on a Jsp page

Ranch Hand
Posts: 144
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have a JSP page, I am trying access the examCheckResult.rowChecked array of values in my Javascript, how do I access them? None of these trials seems to work, my goal is to check the property="examinerAvailabilityCheckbox"  when the property="availability" = "Yes" on loading the page

Here is the JavaScript function

Posts: 24594
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I understand your code right, you're trying to get data from that JavaScript code and use it while you're generating the HTML.

I say that because you used the phrase "on loading the page".

What happens with JSP is, the JSP code is used on the server to generate some HTML, which is then sent to the client for the browser to interpret. This is the point at which the page is loaded by the browser.

I can't tell where the "rowChecked" array is being produced. You hoped for it to be done when the page is loaded? If that's the case why bother with JavaScript? It must be possible to compute that array on the server, without user input, so why not just use ordinary JSP tools to do that?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!