struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Johnson <ctj...@gmail.com>
Subject Re: accessing properties/attributes
Date Mon, 20 Aug 2012 12:58:10 GMT
On Mon, Aug 20, 2012 at 6:42 AM, Lukasz Lenart <lukaszlenart@apache.org>wrote:

> 2012/8/19 Christopher Johnson <ctjctj@gmail.com>:
> > <s:if test="${currentURL}==${url}"> fails because the TLD does not accept
>
> Did you try:
> <s:if test="${currentURL==url}">
>
This gives an error message because ${} expressions are not allowed in the
test attribute.

>
> or
>
> <s:if test="%{#currentURL==#url}">
>
Since currentURL is created via <s:url var="currentURL" /> the #currentURL
*does* reference the correct variable.

#url turns out to be null because it can't.  <s:debug /> does not show it
anywhere.

Thanks,
-Chris

>
>
> Regards
> --
> Ɓukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message