[Opensource] Really strange bug when using Expresso in Tomcat 4.1
Raul DAVIDOVICH
R.DAVIDOVICH at caconcology.com
Thu Sep 18 06:57:55 PDT 2003
Hello all,
I found out a very strange behaviour when running expresso on Tomcat 4.1,
which doesn't come up in tomcat 4.0.
The symptom is OutputTags in JSP don't get refreshed when the transition
leads to the same page with updated outputs.
I've tracked down the problem up to the level of AttributeTag. What happens
here is that because of some strange reason, the variable "oneElement" in
the AttirbuteTag object always points to the output object created the
first time the page was built, and it doesn't get updated the following
times, while all other references to this output object point now to the
new one (myOutput in MYController, and oneOutput in OutputTag).
So for example we have page a.jsp, which shows the output of the state
promptAState from MyController.
This page has an "again" button which will lead to the AState of
MyController, and this state will give it's results again to promptAState,
who will show them in an output object, and prompt for a new value and
"again" or "ok".
Let's say that the first time, the output was "123", and the second time it
was "456". In tomcat 4.0 this works fine, but in tomcat 4.1, it will still
show "123", no matter how many times I press "again". (I insist that the
new output object is created and filled up with the right values, and
OutputTag points to the right object)
Any clues?
Best regards
Raul Davidovich
More information about the Opensource
mailing list