struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Perry" <d.pe...@netcase.co.uk>
Subject RE: Using tokens in links
Date Wed, 19 May 2004 17:06:34 GMT
<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:d.perry@netcase.co.uk]
> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


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


Mime
View raw message