title: jquery working with objects
body: <p>I have the need to pass an object from jstl to a Jquery click handler. </p>
  
  <p>My UI displays a tree structure. The nodes which make up the tree use a name property which is the value displayed to the user. This name property is taken from a "node" object. Is there any way i can pass the "node" object into my jquery function when one of the nodes of the tree is clicked?</p>
  
  <p>My jstl looks like this </p>
  
  <pre><code>&lt;c:forEach var="node" items="${object.childItems}"&gt;
  &lt;li&gt;
          &lt;a href="#" class="node"&gt;&lt;c:out value="${node.name}"/&gt;&lt;/a&gt;
      &lt;c:set var="node" value="${node}" scope="request"/&gt; 
      &lt;jsp:include page="child.jsp"/&gt;
  &lt;/li&gt;
  &lt;/c:forEach&gt;
  </code></pre>
  
  <p>I then have a jquery click event attached to the ".node" class of each href. When the href is clicked i want to be able have access to all the values in "node" in my Jquery click handler. What is the best way to do this? Thanks</p>