struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lombart Vincent \(DBB\)" <VINCENT.LOMB...@dexia.be>
Subject RE: nested <c:forEach> and <html-el:link>
Date Thu, 08 Sep 2005 13:52:26 GMT

That's the kind of solution I was looking at, although using <c:url> with included <c:param>
might be more robust. But I would prefer to use the action name rather than the direct url.

Regards
Vincent

-----Original Message-----
From: Brandon Mercer [mailto:brandon@eutonian.com]
Sent: jeudi 8 septembre 2005 15:35
To: Struts Users Mailing List
Subject: Re: nested <c:forEach> and <html-el:link>


Lombart Vincent (DBB) wrote:

>Dear all,
>
>Does anybody know why the following JSP code does not work:
>
><table border="1" cellspacing="0">
>  <tbody>
>    <c:forEach items="${monitorBean.rows}" var="irow">
>      <tr>
>        <c:forEach items="${irow.columns}" var="icol">
>          <td><html-el:link action="monitor" paramId="monitorName" paramName="icol">
>          <c:out value="${icol}"/></html-el:link></td>
>        </c:forEach>
>      </tr>
>    </c:forEach>
>  </tbody>
></table>
> 
>
<table border="1" cellspacing="0">
  <tbody>
    <c:forEach items="${monitorBean.rows}" var="irow">
      <tr>
        <c:forEach items="${irow.columns}" var="icol">
          <td><a href="monitor.do?monitorName=${icol.monitor}">${icol.monitor}</a></td>
        </c:forEach>
      </tr>
    </c:forEach>
  </tbody>
</table>

What about something more like that??

Brandon




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


--------------------------------------
Dexia Bank disclaimer :
http://www.dexia.be/maildisclaimer.htm
--------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message