struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Randall Svancara" <rsvanc...@adaweb.net>
Subject Adding parameters to a link
Date Thu, 02 Dec 2004 23:01:16 GMT
I am new to struts. I am trying to add parameters to a link using
<html:link>someplace</html:link>.  Here is the code below.  For each
iteration, I want to create a dynamic link.

    <logic:iterate id="result" name="ParcelSearchForm"
property="results">
    <tr>
    <td><html:link forward="ParcelResult" paramName="ParcelSearchForm"
paramId="parcel" paramProperty="concatenateAddress"><bean:write
name="result" property="parcel"/></html:link></td>
    <td><bean:write name="result" property="year"/></td>
    <td><bean:write name="result" property="parcelStatus"/></td>
    <td><bean:write name="result" property="concatenateAddress"/></td>me
    </tr>
    </logic:iterate>


I have a ActionForm called ParcelSearchAction and a Form bean called
Parcel. How do I generate a dynamic link like the one shown below:

http://www.somwhere.com/somepage?key=r123456789&year=2004

Thanks,

Randall

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


Mime
View raw message