I just encountered strange behaviour of the PushTag (ww2).
I have a jsp-page like this:
[...] <br>Stack: <ww:property/>
<ww:push value="street"> <p>Street: <ww:property/> <p>that : <ww:property value="that"/> </ww:push> <p>street-Property: <ww:property value="street"/> [...]
When the page is rendered, on top of the stack is an instance of the executed action,
which has a Property called "street".
The first time the page is shown, the output is as expected: The first <property/>-call
returns the output of toString() of the action class, that's on top of the stack. All other <property>-calls return the value of the "street" property.
When I re-execute the action, the output is wrong: both <property>-calls inside the
<push>-tags output the value of toString() of the action class, instead of the
"street"-property value.
All following calls also show this wrong behaviour.
After tracing a little, I changed the method getStack() in PushTag to:
protected OgnlValueStack getStack() { return ActionContext.getContext().getValueStack(); /* was before sth like this: if (stack == null) { ActionContext ctx = ActionContext.getContext(); stack = (OgnlValueStack)ctx.getValueStack(); } return stack; */ }
I don't know why, but this seems to work for me.
Is this a bug (nothing found in Jira) or am I doing something wrong with the push-tag?
(btw: I'm running webwork from CVS on tomcat 4.1.24 on linux with jdk1.4.2)
Nils
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork