Results 1 to 2 of 2
  1. #1
    ali_sakar is offline Member
    Join Date
    Feb 2009
    Posts
    29
    Rep Power
    0

    Default Accessing ModelAttribute Object in Javascript

    Hi,

    I am pretty new to Java. I am working on JSP/Spring/Hibernate project. I am sending 1 Object to JSP from my controller. I want to access a Arraylist from this modelAttribute object in my Javascript function of this JSP.

    Kindly help. This is really urgent.

    Ali.

  2. #2
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    11,819
    Rep Power
    19

    Default Re: Accessing ModelAttribute Object in Javascript

    You need to pass this through to your Javascript, possibly as a JSON string on the page?
    That's the only way it'll be able to use it.

Similar Threads

  1. Can't access Object of JavaScript
    By scsvel in forum New To Java
    Replies: 2
    Last Post: 06-28-2011, 07:11 AM
  2. Accessing an object from within another object from the same type in Java
    By mhasgari in forum Threads and Synchronization
    Replies: 5
    Last Post: 06-20-2011, 04:21 PM
  3. Problems accessing methods in an object.
    By Kevinius in forum New To Java
    Replies: 2
    Last Post: 03-05-2011, 10:52 AM
  4. Accessing GUI object methods
    By km0r3 in forum AWT / Swing
    Replies: 5
    Last Post: 10-06-2010, 01:39 AM
  5. Replies: 2
    Last Post: 03-08-2010, 10:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •