|
The property artistName and artistBio will now be stored in the ActionContext. To refer then you need to use the following syntax #objectName.
You can also place the property value in the session map in the following way. Now the value artistName and artistBio will persist throughout
the session.
<s:set name="artistName" value="artist.name" scope="session" />
<s:set name="artistBio" value="artist.bio" scope="session" />
<b>Album Title :</b> <s:property value="title" /> <br>
<b>Artist Name :</b> <s:property value="#session['artistName']" /> <br>
<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.
|