---
title: "Struts2 doubleSelect"
author: "BestUpon"
date: "2009-10-30T14:17:41Z"
tags: []
categories: ["企业架构"]
slug: "struts2-doubleselect"
draft: false
lastmod: "2009-10-30T14:17:41Z"
id: 507303
url: "https://bestupon.iteye.com/blog/507303"
---

今天要用到一个二级联动，以前都是使用JavaScript编写，突然记起来Struts2 有个标签可以达到二级联动，就到API 中去看了下，用到了自己的项目中：

```
<div class="nobr"> <s:doubleselect labelposition="top" id="customerTypeID"
								name="tradeInfo.customerType.customerTypeID"
								list="customerTypes" listKey="customerTypeID"
								listValue="customerTypeName" doubleName="detailDescription"
								doubleList="detailDescriptions.get(top.customerTypeID)"
								theme="simple"/> 
							</div>
```

 

但是一直报一个Framemaker.core.Exception: FormName.noDefined：。。。

原因：没有使用&lt;S:form name="jjj" action="ddd"&gt;&lt;/s:from&gt;

直接将其给放到了页面上。