A quick hack you can do is:
<%java.util.HashMap ha = new java.util.HashMap(); ha.put("mode","edit");
ha.put("code", code); pageContext.setAttribute("linkParams",ha);%>
<html:link href="collaborator.do" name="linkParams">Edit</html:link>

I usually build my link hashmap in the setup action for the jsp, but you can
do this.



----- Original Message ----- 
From: "Zimmerman, Steven R." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 18, 2003 4:45 PM
Subject: html:link question (for a relative newbie)


> I cannot seem to get this to work
> <html:link
> page="/collaborator.do?mode=edit&code=<%=code%>">Edit</html:link>
>
> or better yet this instead
> <html:link
> action="collaborator.do?mode=edit&code=<%=code%>">Edit</html:link>
>
> but the <%=code%> is not picking up the value of "code", instead it is
> putting "<%=code%>" in its place.  That all makes sense why, but is there
a
> way I can get at a expression using Struts tags like I can using the code
> below with a hard coded HREF ('cuse it works fine there but is not what I
> want).
>       <A href="logon.jsp?task=delete&code=<%=code%>">Delete</A>
>
> All else works fine, I realize that I could be chaining actions or some
> other "do not do" but I am under a bit of a time crunch (as always... :).
> TIA, Steve
>
> ---------------------------------------------------------------------
> 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