Use the "href" not the "value" attribute to specify the URL.
Unless you are use the tag ajax support there is no reason to use the <s:a> tag just use the plain html <a> tag like <a href="${companyId}"> On Thu, May 27, 2010 at 8:38 PM, Ken <ken.mcwilli...@aerose.com> wrote: > 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? > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org