且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从 Struts 2 中的选定对象中获取对象属性

更新时间:2023-12-05 09:26:58

要将 id 设置为 select 标签的值,您应该使用附加属性

To set id to the value of the select tag you should use additional attributes

<s:select label="Source city" 
          list="cities" 
          listKey="id"
          listValue="name"
          name="sourceId"/>