Java 如何使选项集合显示字符串列表中的项目?
如果我想显示某些列表中项目的id,我会写:Java 如何使选项集合显示字符串列表中的项目?,java,string,jsp,stripes,Java,String,Jsp,Stripes,如果我想显示某些列表中项目的id,我会写: <stripes:options-collection collection="${itemsList}" value="id"/> 答案很简单-我不应该使用任何值。因此,条纹中的线条应如下所示: <stripes:options-collection collection="${stringsList}"/> 这样,列表中的项目将直接显示 <stripe
<stripes:options-collection collection="${itemsList}" value="id"/>
答案很简单-我不应该使用任何
值。因此,条纹中的线条应如下所示:
<stripes:options-collection collection="${stringsList}"/>
这样,列表中的项目将直接显示
<stripes:options-collection collection="${stringsList}"/>