• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

html:link in logic:iterate

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I want to nest a html:link in a logic:iterate tag.
Here is my current (working) solution:
******************************************
<logic:iterate name="<%=Constants.MODEL_NAME_OF_EVENT_PACKETS%>" property="eventPackageDTOs" id="member">
<tr>
<td class="cellgreen" align="left">
<a href="/drilldown.do?osaid=<bean:write name="member" property="lastEvent.OSAID"/>"><bean:write name="member" property="lastEvent.OSAID"/></a>
</td>
</logic:iterate>
************************************************
I dislike this solution, because it doesn't use the features of html:link (URL rewriting..). Has anyone a better idea ?
How can I set "lastEvent.OSAID" as a property available to the page, so that I can use the html:link ?
Thanx,
Mike
SCEA
 
Mike Weiss
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have found an appropriate solution:
********************************
<logic:iterate name="<%=Constants.MODEL_NAME_OF_EVENT_PACKETS%>" property="eventPackageDTOs" id="member">
<tr>
<bean efine id="osaid" name="member" property="lastEvent.OSAID" scope="page" toScope="page"/>

<td class="cellgreen" align="left">
<html:link page="/drilldown.do" paramId="osaid" paramName="osaid">
<bean:write name="osaid"/>
</html:link>
</td>
</logic:iterate>
************************************

The same approach seems to fit problems, which occur when you try to nest logic:iterate tags..
Any comments ??
Mike
SCEA
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic