当前位置: 网站首页 > JAVA > j2ee

Struts 2 Data Tags Example

时间:1970-1-1 08:33:31来源: j2ee作者:admin 点击:9次 字体 [ С]

4.<b>Artist Name :</b> <s:property value="#session['artistName']" /> <br>
5.<b>Artist Bio :</b> <s:property value="#session['artistBio']" /> <br>
In the same way you can also store the values in other maps avaliable in the ActionContext. 
 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.

1.<b>Album Title :</b> <s:property value="title" /> <br>
2.<s:push value="artist">
3.<b>Artist Name :</b> <s:property value="name" /> <br>
4.<b>Artist Bio :</b> <s:property value="bio" /> <br>
5.</s:push>


发表评论
验证码:
最新评论
相关文章
最热文章