Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
PavanPL KalyanK
Ranch Hand
Posts: 212
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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


Thanks in advance
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 212
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Great Explanation .Thanks .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic