Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一张地图`
{ key1=[button1,button2,button3,button4],key2=[button1],key3=[button1,button2],key4=[button1,button2,button3]}
` 我想在我的 jsp 中显示这个地图内容,如下所示
如何在 struts 2 标签中执行此操作....请帮我解决这个问题....提前致谢
此代码将遍历您的地图以及地图值数组中的每个元素。
<s:iterator value="map"> <s:property value="key"/> <s:iterator value="value"> <s:property/> </s:iterator> </s:iterator>