Menu
Struts 2 > Struts 2 Push Tag Example

Struts 2 Push Tag Example

You can push a value into the ValueStack using the push tag. The value we pushed using push tag will be on top of the ValueStack, so it can be easily referenced using the first-level OGNL expression instead of a deeper reference. The following code show how to do this.


<b>Album Title :</b> <s:property value="title" /> <br>
<s:push value="artist">
<b>Artist Name :</b> <s:property value="name" /> <br>
<b>Artist Bio :</b> <s:property value="bio" /> <br>
</s:push>

You can download and try the example by clicking the Download link below.

Source :Download
Source + Lib :Download
Subscribe
Contact Us  |  Copyright © 2009 vaannila.com