Using variables in JSTL param
Is there any way to specify a variable as a parameter name in JSTL, i.e:
<c:set var='myVar' value='dynamicParameterName' />
开发者_Go百科
<c:out value='${param.(dynamicParameterName)}' />
${param.myVar}
or ${param[myVar]}
are equivalent.
精彩评论