struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken <ken.mcwilli...@aerose.com>
Subject Struts url, a, and iterator tag behaviour
Date Fri, 28 May 2010 00:38:08 GMT
I am trying to dynamically construct a url inside an iterator tag and
use that result in an anchor.

        <s:iterator value="next">
            <s:url  id="companyId" action="companyDetails.action"
namespace="/secure">
                <s:param name="group" value="log.id.mlgroup"/>
                <s:param name="id" value="log.id.mlid"/>
            </s:url>
            <tr>
                <td><s:property value="log.id.mlgroup"/></td>
                <td><s:property value="log.id.mlid"/></td>
                <td><s:property value="log.mlco"/></td>
                <td><s:a value="%{companyId}"><s:property
value="cur.mco"/></s:a></td>
            </tr>
        </s:iterator>

This is producing the following html:
(Showing two iterations only)

<tr>

                <td>01  </td>
                <td>24737</td>
                <td>****  TEST ** FOCUS INDUSTRIAL ****                            
           </td>
                <td><a>****  TEST ** FOCUS INDUSTRIAL ****     </a></td>
            </tr>

                
                
            
            <tr>
                <td>01  </td>
                <td>07777</td>
                <td>==================+** THE TEST COMPANY  **+================================</td>
                <td><a>CASH ** THE TEST COMPANY  **            </a></td>
            </tr>

Any Ideas?



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message