In my jsp I have this code:
<s:property value="%{(getPage()-1)*getSearchMaxEntries()+1}"/>
This should access the properties of the action and show the result of the calculation. Unfortunately, this always equals to 1
regardless of the real values returned by the action.
Any ideas what's wrong?
To access properties you should use property names, and they should be numbers
<s:property value="%{(page-1)*searchMaxEntries+1}"/>