If you are not opposed to using the JSTL standard library

I personally have a difficult time keeping track of the parameters
and values using the other syntax.

<c:url value='/collaborator.do' var='collaboratorURL'>
  <c:param name='mode' value='edit'/>
  <c:param name='code' value='${code}'/>
</c:url>
<html-el:link href='${collaboratorURL}'>
     Edit 
</html-el:link>

-----Original Message-----
From: Zimmerman, Steven R. [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 18, 2003 1:45 PM
To: '[EMAIL PROTECTED]'
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