aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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 .
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: what is the use of <s:push data tag in Struts2
 
Similar Threads
Regarding Serialization
Why ModelDriven not working?
trying to get an object from a map in struts2
Possible work around for displaying blanks as default values for text fields tied to float-JSTL
Struts2 valuestack error