开发者

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?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜