Basic question, should be easy, but I"m obviously missing something easy.

Trying to iterate through a java.lang.Set collection that I have put in
my session. My jsp will display the header information, but nothing else.

This is my jsp. It is a tile, so what you see below is the complete
content file (tried with and without the type parameter):

[BEGIN CODE]
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>

<table>
<tr><th>Center</th><th>Title</th><th>Total</th></tr>
<logic:iterate id="centerItem" name="browseCenters" 
type="com.berzerkersoft.bisweb.db.ejb.value.CenterBrowseValue">
        <tr>
                <td><bean:write name="centerItem" property="center"/></td>
        </tr>
</logic:iterate>
</table>

[END CODE]

Below is a fragment of my Action class. Note the System.out.println,
where I print out the values. This is outputing the expected output.

[BEGIN CODE]
                Set browseCenters = getBrowseCenters(userView.getUsername());
                
                Iterator itr = browseCenters.iterator();
                
                while (itr.hasNext()) {
                        CenterBrowseValue browseValue = (CenterBrowseValue)itr.next();
                        System.out.println(browseValue);
                }
                
                session.setAttribute(IConstants.BROWSE_CENTERS_KEY, browseCenters);
        return mapping.findForward(FORWARD_browse);

[END CODE]
-- 
Bryce Fischer <[EMAIL PROTECTED]>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to