Dashboard > WebWork 1 > WebWork CookBook > Rules of the Value Stack
  WebWork 1 Log In View a printable version of the current page.  
  Rules of the Value Stack
Added by Mike Cannon-Brookes, last edited by Hani Suleiman on Apr 25, 2004  (view change)
Labels: 
(None)

  1. The stack is just a stack of objects.
  2. Initially the stack contains the Action executed (this is why as you say value="foo" calls action.getFoo())
  3. New objects are placed onto the stack during the body of various tags (like <ww:iterator> or <ww:property> for example)
  4. Using the expression language you can navigate UP the stack (ie ../ to move up the stack, / to root an expression from the top of the stack)
  5. Using the expression language you can navigate DOWN the object graph from any point on the stack (ie / to move down the object's methods)
  • The ValueStack is only valid during one request / response cycle.

How is that for a brief primer? Anyone have any other rules to add?

After ActionSupport.execute() is called, what is on the ValueStack? (in general, I know what you do in execute() affects this, but what do I do in execute() to affect the stack, and how does what I do affect it?)

Posted by Michael Campbell at Mar 15, 2004 21:58 | Permalink
Posted by Anonymous at Jul 09, 2004 02:00 | Permalink
Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request - Contact Administrators