开发者

Jsp Expression Language Problem

开发者 https://www.devze.com 2023-01-06 15:24 出处:网络
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 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?

0

精彩评论

暂无评论...
验证码 换一张
取 消