Hi,
I can show my select/options with:
<html:select property="suchKriterium" size="1">
<html:options property="kundenliste" labelProperty="kundenliste"/>
</html:select>
But how can i iterate over the same list ??
<logic:iterate id="item" property="kundenliste" indexId="index">
<bean:write name="item"/> ### <bean:write> name="index"/> <br>
</logic:iterate>
kundenliste is the property ArrayList of my FormBean.
But what should i use for item and indexId ????
if i youse a list from page Context:
<%
{
java.util.ArrayList list = new java.util.ArrayList();
list.add("First");
list.add("Second");
list.add("Third");
list.add("Fourth");
list.add("Fifth");
pageContext.setAttribute("list", list, PageContext.PAGE_SCOPE);
}
%>
<logic:iterate id="item" name="list" indexId="index">
<bean:write name="index"/> ### <bean:write name="item"/><br>
</logic:iterate>
then it works ?!
Please Help...
Fredy
-----Ursprungliche Nachricht-----
Von: Debasish Ghosh [mailto:[EMAIL PROTECTED]]
Gesendet: Samstag, 18. August 2001 18:10
An: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Betreff: RE: logic:iterate
Hi -
It has been solved. Actually the TLD was not of proper
version.
- Debasish
--- Debasish Ghosh <[EMAIL PROTECTED]> wrote:
> Here it is ..
>
> <jsp:useBean id="idx" scope="page"
> class="com.anshin.MonthForm"/>
> <bean:define id="idx_int" name="idx"
> property="index"/>
>
> <html:form action="/month" >
> <table>
>
> <tr>
>
> <logic:iterate id="element" name="monthNames"
> indexId="idx_int">
> <td align="right">
> <bean:write name="element"/>
> <li><em><bean:write
> name="element"/></em> [<bean:write
> name="idx_int"/>]</li>
> <html:multibox property="monthList">
> Jan
> </html:multibox>
> </td>
> </logic:iterate>
>
> </tr>
>
> --- Wouter de Vaal <[EMAIL PROTECTED]>
> wrote:
> > Could you post the jsp code for this part?
> >
> > Wouter
> >
> > > -----Oorspronkelijk bericht-----
> > > Van: Debasish Ghosh
> [mailto:[EMAIL PROTECTED]]
> > > Verzonden: Saturday, August 18, 2001 10:22 AM
> > > Aan: [EMAIL PROTECTED]
> > > Onderwerp: logic:iterate
> > >
> > >
> > > Hi All -
> > >
> > > I am using the logic:iterate tag. I have used
> the
> > > attribute indexId, when I am getting the error
> > > "Attribute indexId invalid according to the
> > specified
> > > TLD".
> > >
> > > I am using Struts 1.0 with Tomcat 3.2.2.
> > >
> > > Please help !!
> > >
> > > Regards.
> > >
> > > - Debasish
> > >
> > >
> __________________________________________________
> > > Do You Yahoo!?
> > > Make international calls for as low as
> $.04/minute
> > with
> > > Yahoo! Messenger
> > > http://phonecard.yahoo.com/
> > >
>
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute
> with Yahoo! Messenger
> http://phonecard.yahoo.com/
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/