struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Lindholm <greg.lindh...@gmail.com>
Subject Re: Struts url, a, and iterator tag behaviour
Date Fri, 28 May 2010 12:34:04 GMT
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.mcwilliams@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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message