I want to do something like this:
<display:table name="${summary${index}}">
But it does not work throws exception: "${summary${selChrm}}" contains invalid expression(s). I would like the user to use a drop down list to choose a selection and put in the variable index. Then the table will display the corresponding list of javabean objects, ie. named summary01, summary02, etc. How can I do that? Thanks in advance.
Update: Thanks guys. The problem is with the nested EL. I tried to use
<display:table name="summary${index}">
But nothing shows in the table since summary01 is the variable name. If I hard code the variable name, it will work:
<display:table name="${summary01}">
Therefore, how can I do nested EL? If it is not possibly in JSTL, how can I achieve the behavior that user can use a dropdown list to determine what contents to be display in the table? Thanks again.
${}
things: Expression Language – Gneiss