Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在 Struts/JSP 中做以下事情?
<html:checkbox property="list.get(0).checked" />
先感谢您。
如果你想在 JSTL 中访问列表中的第三个元素,语法就像数组一样:
<html:checkbox property="list[2].checked" />
请注意,如果您不熟悉 JSTL/EL,则必须将适当的 jar 添加到类路径并引用标记库。