David
From: "Mark Conlin" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Subject: iterate tage and creating links - whats the "right" way ?
Date: Fri, 20 Dec 2002 16:37:49 -0500
I am creating "view" links along with a list of contacts.
I have done so successfully but wanted feedback.
I am currently doing the following:
<logic:iterate id="contact" name="contacts" indexId="index"
scope="page">
<%
view.clear();
view.put("forward", "customer.view_contact");
view.put("key", index);
%>
<html:link href="forwardaction.do" name="view">
<bean:message key="general.view"/>
</html:link>
</logic:iterate>
This works, however I would like to use a property from each contact
bean as the value for my key parameter in the link, rather then its
place value in the contacts collection.
What is the preferred "Struts" way of doing this?
Thank you,
Mark
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail&xAPID=42&PS=47575&PI=7324&DI=7474&SU= http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_addphotos_3mf
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

