Jsp Expression Language Problem
I have a jsp in which there is something like this
${pageContext.request.parameterMap.instanceNo[0]}
I want to iterate through each of its value.
I tried the below code but doesn't work
&开发者_开发问答lt;s:iterator id="test" var="" value="${pageContext.request.parameterMap.instanceNo[0]}">
Hello
</s:iterator>
Since you already denoted the index using [0]
, it returns the first value as String
, not all values as String[]
.
Don't you maybe want to iterate through ${paramValues.instanceNo}
instead?
精彩评论