Wes,

I did try the code below but it still doesn't work. Anyone has any other suggestion? 

Imagine all this trouble when all I want to do is to make my "WORKING" JSP code look 
cleaner by using iterate tag:


<TABLE>
<logic:iterate id="supplierMapEntry" name="user" property="suppliers" >

<bean:define id="supplier" name="supplierMapEntry" property="value" 
type="com.motorola.mms.msqc.beans.SupplierBean"/>

<TR>
<TD><FONT face = "Arial"><bean:write name="supplier" property="code"/></FONT></TD>
<TD><FONT face = "Arial"><bean:write name="supplier" property="name"/></FONT></TD>
<TD><FONT face = "Arial"><bean:write name="supplier" 
property="countryName"/></FONT></TD>
</TR>

</logic:iterate>
</TABLE>
------------------------------------------------------
This is what I am trying to replace:

<jsp:useBean id="user" scope="session" type="com.motorola.mms.msqc.beans.UserBean"/>

<TABLE>
<%
        Hashtable hashTable = (Hashtable) user.getSuppliers();
        for (Enumeration e = hashTable.elements(); e.hasMoreElements(); ) 
        {
           SupplierBean supplier = (SupplierBean) e.nextElement();
%>
<TR>
<TD ><FONT face = "Arial">supplier.getCode() %></FONT></TD>
<TD><FONT face = "Arial"><%= supplier.getName() %></FONT></TD></FONT></TD>
<TD><FONT face = "Arial"><%= supplier.getCountryName() %></FONT></TD>
</TR>

<% } %>
</TABLE>

Reply via email to