You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Johan Compagner <jc...@j-com.nl> on 2000/12/19 11:06:34 UTC

Dynamic links build from a iterate object..

Hi,

I have this:
<logic:iterate id="table" name="maintenacetables">
  <th>
   <form:link href="DYNAMIC LINK FROM THE TABLE OBJECT"><bean:write name="table" property="name" filter="true"/></form:link>
</th>
</logic:iterate>

the href must be this:
maintenance.do?thema=<-table.getThema()->&table=<-table.getTableName()->
                                     ^^^^^^^^^^^^^^^^             ^^^^^^^^^^^^^^^^^^^^
for every table object of the iterator.

so if there are 3 items in the iterator, these 3 must be generated:
maintenance.do?thema=pensioen&table=customer
maintenance.do?thema=pensioen&table=systemtable
maintenance.do?thema=pensioen&table=datatable

what is the best way to do this?

Johan compagner