action层
List<Object[]> elecSystemDDLList=elecSystemDDLService.findByKeyWord();
ActionContext.getContext().put("elecSystemDDLList",elecSystemDDLList);
servilce层
public List<Object[]> findByKeyWord() {
return getSession().createQuery("select distinct o.keyword from Elec_SystemDDL o")//
.list();}
显示层 jsp
<s:select list="#elecSystemDDLList" name="keywords" listKey="keyword"
listValue="keyword" />
为什么加上select distinct o.keyword数据就取不出来了,不加能取出来,加上该怎么取啊,加上后elecSystemDDLList里也有值