Struts2 doubleSelect

今天要用到一个二级联动,以前都是使用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:。。。

原因:没有使用<S:form name="jjj" action="ddd"></s:from>

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

 

你可能感兴趣的:(JavaScript)