<c:url var="book" value="bookcourse.do"> <c:param name="org.apache.struts.taglib.html.TOKEN" value="${sessionScope['org.apache.struts.action.TOKEN']}"/> <c:param name="programmeId" value="${programme.id}" /> </c:url>
works, but uses the constants values directly. Sould any of the constants values change, then it would stop working. Daniel. > -----Original Message----- > From: Daniel Perry [mailto:[EMAIL PROTECTED] > Sent: 19 May 2004 17:23 > To: Struts User List > Subject: Using tokens in links > > > I'm trying to use a token in a link. > > I am expecting somthing like the following to work: > > <c:url var="book" value="bookcourse.do"> > <c:param name="<%=org.apache.struts.taglib.html.Constants.TOKEN_KEY%>" > value="<%=session.getAttribute(org.apache.struts.Globals.TRANSACTI > ON_TOKEN_K > EY)%>"/> > <c:param name="programmeId" value="${programme.id}" /> > </c:url> > > But it gives a thread death :( > > > Any ideas? > > Daniel. > > > --------------------------------------------------------------------- > 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]