struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Docs on which is the preferred variable reference
Date Mon, 20 Jun 2016 12:49:47 GMT
2016-06-16 10:10 GMT+02:00 Greg Huber <gregh3269@gmail.com>:
> I seem to be doing a lot of references in my jsp's
>
> eg
>
> <s:set var="uuId" value="getUuId()" />
>
> <s:hidden id="bean_%{#attr.uuId}" name="bean.somevalue%{#uuId}" />
> ie %{#uuId} or %{#attr.uuId}
>
> <s:property value="getUuId()" />

Does it work at all?

> <s:property value="uuId" />

prefered

> <s:property value="#uuId" />

when searching in current scope (ie. when using inside <s:iterator/>)

> <s:property value="#attr.uuId" />

search everywhere (#session, #application, #parameters)

> ${uuId}

supports EL


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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


Mime
View raw message