You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by setecastronomy <fi...@virgilio.it> on 2007/06/20 12:13:36 UTC

Investigating the ValueStack

In order to better understand the ValueStack I wrote the following code to
explore it:

ValueStack myStack = ActionContext.getContext().getValueStack();
        out.println("Stack size " + myStack.size() + "<br/>");
        java.util.Map myMap = myStack.getContext();
        for (Object pollo : myMap.keySet()) {
            Object value = myMap.get(pollo);
            out.print("<li>");
            out.println(pollo.toString() + " - ");
            if (value != null) {
            out.println(value.toString());
            }
        }

The results are much different from what I was expecting to see. 
First there is no notion of the different level of the satck.
Second lots of objects accessible inside the jsp with struts tag and related
to action properties are not present.

Thanks
Filippo
-- 
View this message in context: http://www.nabble.com/Investigating-the-ValueStack-tf3951442.html#a11210514
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org