struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ray Madigan" <...@madigans.org>
Subject RE: html:link question (for a relative newbie)
Date Thu, 18 Sep 2003 21:09:20 GMT
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:srzimmerman@DOC1.WA.GOV]
Sent: Thursday, September 18, 2003 1:45 PM
To: 'struts-user@jakarta.apache.org'
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


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


Mime
View raw message