首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

struts2跟OGNL 参数之间传递

2013-07-04 
struts2和OGNL 参数之间传递containEntity是action中一个实体,paramsMap是containEntity实体的一个map集合

struts2和OGNL 参数之间传递
containEntity是action中一个实体,paramsMap是containEntity实体的一个map集合,port是map集合中一个参数key,下面是什么意思 ?是获取map的值么?怎么不对。

<s:property value="containerEntity.paramsMap['port']" /> 貌似回答错了,
你可以搜索下sturts2标签
⑧根据key访问Map中的元素

<s:property value="mapName.username"/>

<s:property value="mapName['username']"/>

给你找了个链接
http://my.oschina.net/sunfei/blog/37927

热点排行