This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes what is the use of <s:push data tag in Struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "what is the use of <s:push data tag in Struts2" Watch "what is the use of <s:push data tag in Struts2" New topic
Author

what is the use of <s:push data tag in Struts2

PavanPL KalyanK
Ranch Hand

Joined: Feb 28, 2009
Posts: 212


seen above , but coudn't understand , whats the use of using <s:push tag ?


Thanks in advance
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

The <s:push> tag pushes the value onto the stack. Subsequent <s:property> (and similar) tags check the stack in order, so whatever is pushed last will be queried first.

The following would be identical to your example (note correct spelling of the property tag):
PavanPL KalyanK
Ranch Hand

Joined: Feb 28, 2009
Posts: 212
Great Explanation .Thanks .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what is the use of <s:push data tag in Struts2
 
Similar Threads
Possible work around for displaying blanks as default values for text fields tied to float-JSTL
Struts2 valuestack error
Regarding Serialization
Why ModelDriven not working?
trying to get an object from a map in struts2