During the development I faced a very strange struts 2 behavior. Here is the simplified example of the problem.
In my action class I define a collection or a map of beans that have indexed properties:
Then in my jsp I try to access the properties of beans in two ways - using the whole path and using push tag (I try to do this for both Map (beans) and List (beanList)) :
As the result, when using push tag indexed property is not displayed while simple property is displayed:
I've thought that push tag makes no difference when accessing properties, just shortening the path.
Is it a bug in struts 2 that prevents indexed property from displaying or I'm doing something wrong?
The example may seem a bit synthetic but in my real application it brings me some troubles because I can't replace those indexed properties with some collection - there is some logic behind them.
I tried the example on both struts 2.0.14 and 2.1.8 - the results are the same.