Thank you for all help, but unfortunately it still don't solve my main problem: 
"The question is really how can I get the content data in JSP code". I need to 
be able to put some logic in my page that uses the data from the content. This 
is what I want to do:


        <% Hashtable products = new Hashtable(); %>

        <cms:contentNodeIterator contentNodeCollectionName="DocumentData">
                <cms:setNode var="actNode" />
                <% products.put( ${actNode.product}, "X" ); %>
        </cms:contentNodeIterator>

        <select>
        <%
                Object[] sortedProducts = products.keySet().toArray();
                Arrays.sort( sortedProducts );
                for (int i= 0; i < sortedProducts.length; i++) {
        %>
          <option value="<%= sortedProducts[i] %>"><%= sortedProducts[i] 
%></option>
        <%
                }
        %>
        </select>

This way I get a sorted select list with all produce, removing duplicates. But 
of course the statement "<% products.put( ${actNode.product}, "X" ); %>" gives 
syntax error. So how can I use the cms variables i logic in JSP? Or am I 
totally off target?

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=3185a054-baaa-4e73-9e8a-97a5dd647c82


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to