Struts2 tags seem to evaluate inconsistently
问题 I have an issue with some Struts2 tags mixed with OGNL. To overcome the fact that you cannot nest evaluation of expressions in OGNL, e.g., %{foo[%{bar}]} , I use successive assignment to variables to get the results that I need. In the following code, the var grpIndex evaluates correctly, e.g., '6' or '7' in my case, and prints out correctly on the next line. The following statement (line 3) also evaluates correctly, e.g., 'stage' or 'prod' in my case. However, in the fourth line I try