This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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 .
 
wood burning stoves
 
subject: what is the use of <s:push data tag in Struts2