struts标签问题---急!急!急
有两个不同的集合,一个util(id,name),一个item(destType)
destType对应的是util中的id,怎样在页面显示名称;
<html:select property="destType">
<html:option value="">请选择</html:option>
<bean:define id="dest" name="util" property="destTypeList" />
<html:optionsCollection name="dest" label="name" value="ID" />
</html:select>
我获得了id,name(编号,名称),显示时为移动、联通、电信
我想在下面输出的时候根据id进行显示,下面是我手动写的,我想通过上面代码中的信息进行对比
<c:choose>
<c:when test="${item.destType==1}">中国移动</c:when>
<c:when test="${item.destType==2}">中国联通</c:when>
<c:when test="${item.destType==3}">中国电信</c:when>
<c:otherwise> </c:otherwise>
</c:choose>
怎样写显示时的代码部分?
谢啦