I want to dynamically create variable names in java el.
The problem is that the second line returns sessionScope.saved_activity as a string instead of data.
<c:set var="savedKey" value="sessionScope.saved_${entry.key}" />
<td> <input type="text" name="${entry.key}" value="${savedKey}"> </td>
How can I retrieve the data from a string in el ?
You need to create the sole key name and then use that as a dynamic key of the
${sessionScope}with the brace notation.