---
title: "sructs1中select取值(html和stucts1标签)"
author: "zhou_wu"
date: "2010-10-14T16:45:37Z"
tags: []
categories: ["企业架构"]
slug: "sructs1-select-html-stucts1"
draft: false
lastmod: "2010-10-14T16:46:25Z"
id: 785014
url: "https://leesmart.iteye.com/blog/785014"
---

下两是用stuct1标签库和直接html写的从后台读出下拉框的值

```java
<html:select property="platformPaymentTO.paymentProviderId" onchange="initCreatPayment();"><html:options collection="paymentServicesList" property="paymentIdlabelProperty="paymentDesc" />
</html:select>

```



```java

<select property="platformPaymentTO.paymentProviderId""> <c:forEach items="${paymentServicesList}" var="item"><option value='<c:out value="${item.varName}"/>'><c:out value="${item.varName}"/></option></c:forEach><select>	

```