如何在JSP中使用JSTL或标准操作生成选择标记 [英] How can I produce a select tag using JSTL or Standard Actions in a JSP

查看:88
本文介绍了如何在JSP中使用JSTL或标准操作生成选择标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在JSP中创建一个选择标记,其中的选项是枚举(例如,所有美国国家)。他们是JSTL中的一个标签还是一个可以执行此操作的标准标签,而无需在列表中手动迭代?

解决方案

JSTL中没有。然而,许多框架提供了这样的附加标签:


I want to make a select tag in a JSP, where the options are an Enumeration (for example, all US States). Is their a tag in JSTL or a standard tag that can do this, without manually iterating through the list?

解决方案

There isn't in JSTL. However many frameworks provide such additional tags:

这篇关于如何在JSP中使用JSTL或标准操作生成选择标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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