Here's how I do it:
(This demonstrates both static and dynamic values for use with the
html:link)


...
...
<jsp:useBean id="myLinkParams" class="java.util.HashMap"/>
<c:set target="${myLinkParams}" property="id" value="${dto.id}"/>
<c:set target="${myLinkParams}" property="type" value="edit"/>

...later down the page...

     <html:link action="/manageUserAccount" name="myLinkParams">
         <bean:message key="edit.user.link.text"/>
     </html:link>
...
...




--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx

----- Original Message -----
From: "Nicolas De Loof" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, June 07, 2004 11:31 AM
Subject: html:link and map of request parameters


>
> Hi,
>
> What is the 'cleaner' way to define and populate a map to be used with
<html:link> tags ?
>
> Notice I can use JSTL.
>
> Nico.
>
>
> Our name has changed.  Please update your address book to the following
format: "[EMAIL PROTECTED]".
>
> This message contains information that may be privileged or confidential
and is the property of the Capgemini Group. It is intended only for the
person to whom it is addressed. If you are not the intended recipient,  you
are not authorized to read, print, retain, copy, disseminate,  distribute,
or use this message or any part thereof. If you receive this  message in
error, please notify the sender immediately and delete all  copies of this
message.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to