如何访问scriptlet标记中的jstl列表 [英] How to access jstl list in scriptlet tag

查看:94
本文介绍了如何访问scriptlet标记中的jstl列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

< c:forEach var =locationitems =$ {driver_Locations}varStatus =counter>

我想在scriptlet标签内使用位置变量。



我尝试了什么:



i尝试了request.getParameter和pageContext.getAttribute但是它只获得字符串而不是列表它也不能进行类型转换。

<c:forEach var="location" items="${driver_Locations}" varStatus="counter">
I want to use location variable inside scriptlet tag.

What I have tried:

i was tried request.getParameter and pageContext.getAttribute but it get only string not list it can't typecast also.

推荐答案

{driver_Locations}varStatus =counter>

I想在scriptlet标签内使用位置变量。



我尝试过:



i尝试了request.getParameter和pageContext.getAttribute但它只获得字符串而不是列表它也不能进行类型转换。
{driver_Locations}" varStatus="counter">
I want to use location variable inside scriptlet tag.

What I have tried:

i was tried request.getParameter and pageContext.getAttribute but it get only string not list it can't typecast also.


这篇关于如何访问scriptlet标记中的jstl列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆