struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Musachy Barroso <musa...@gmail.com>
Subject Re: Struts2.1.8.1, s:push does not return s:property value
Date Mon, 18 Jan 2010 21:17:01 GMT
The pushed object will be on the stack while the tag is evaluated (in
the tag body), and it will be popped after the end of the tag, so

<s:push value="%{'not now john'}">
    <s:property value="%{top}"/>  <--- will print 'not now john'
<s:push>

<s:property value="%{top}"/> <--will print whatever was in the top of
the stack, before the "push" tag was invoked

musachy

On Mon, Jan 18, 2010 at 12:55 PM, Emi Lu <emilu@encs.concordia.ca> wrote:
> Good afternoon,
>
> Struts2.1.8.1, the following push example
> http://www.vaannila.com/struts-2/struts-2-example/struts-2-push-tag-example1.html
>
> Title returns, but "s:push" never returns attributes such as "name" under
> artist. Does someone tries and knows the reason?
>
>
>   <b>Album Title:     </b> <s:property value="title"  /> <BR/>
>   <s:push value="artist" />
>   <B>Artist Name:     </B> <s:property value="name"    /> <BR/>
>
> Thanks a lot!
> --
> Lu Ying
>
>
>
> ---------------------------------------------------------------------
> 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