title: Is possible : javascript extract value from c:forEach tag?
body: <p><br>
      i have populate some values using c:forEach tag. I want to get those values in my javascript.<br>
    If I click <strong>GetCtag</strong> value button, then i want to read  from (<strong>c:forEach</strong>) values in javascript.</p>
  
  <p>Is any other-way to retrieve the c:forEach tag value</p>
  
  <pre><code>&lt;%@page contentType="text/html" pageEncoding="UTF-8"%&gt;
  &lt;%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %&gt;
  &lt;%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %&gt;
  &lt;%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%&gt;    
  &lt;%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %&gt;
  
  &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  "http://www.w3.org/TR/html4/loose.dtd"&gt;
  
  &lt;f:view&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
  
         &lt;script type="text/javascript"&gt; 
  
         function getCTagValue(ctagObject)
         {
            alert("CFor Each Tag Object Value: " + ctagObject);
            // Here i want write code for retrieve the c:forEach tag value   
         }
  
  &lt;/script&gt;
  &lt;/head&gt;
      &lt;body&gt;
          &lt;h:form id="cTagForm" &gt;               
  
              &lt;c:forEach items="${cTagBean.tagList}" var="ctag"&gt;
                  &lt;c:out value="${ctag.name} : "/&gt;
                  &lt;c:out value="${ctag.age}"/&gt;&lt;/br&gt;
              &lt;/c:forEach&gt;
  
              &lt;a4j:commandButton id="GetCtagId"  value="GetCtag" oncomplete="getCTagValue('#{cTagBean.tagList}')"/&gt;
  
          &lt;/h:form&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p></p>
  
  <p>Help me.
  Thanks in advance.</p>