c:foreach标签取不到值, 5
@RequestMapping(value="/findAssets",method=RequestMethod.POST)publicModelAndViewfindA...
@RequestMapping(value="/findAssets",method = RequestMethod.POST)
public ModelAndView findAssets(Assets assets){
List<Assets> list = searchService.fixndAssets(assets);
ModelAndView mav = new ModelAndView();
mav.addObject("list",list);
mav.setViewName("assetsList");
return mav;
}
<c:forEach items="${list}" var="asset">
<tr>
<td class='spokesoft_srs_clean_tbody'><a id='linkAsset1'
href='Dispatcher?nvcm=RootContext_140;'
class='documentlink'
name='Asset KC-EML-001'>asset.asset_reference</a></td>
<td class='spokesoft_srs_clean_tbody'>asset.description</td>
<td class='spokesoft_srs_clean_tbody'>asset.ACCOUNT_ID</td>
<td class='spokesoft_srs_clean_tbody'>asset.LOCATION_ID</td>
</tr>
</c:forEach>
在页面打印过了,list中有数据,求解。。。 展开
public ModelAndView findAssets(Assets assets){
List<Assets> list = searchService.fixndAssets(assets);
ModelAndView mav = new ModelAndView();
mav.addObject("list",list);
mav.setViewName("assetsList");
return mav;
}
<c:forEach items="${list}" var="asset">
<tr>
<td class='spokesoft_srs_clean_tbody'><a id='linkAsset1'
href='Dispatcher?nvcm=RootContext_140;'
class='documentlink'
name='Asset KC-EML-001'>asset.asset_reference</a></td>
<td class='spokesoft_srs_clean_tbody'>asset.description</td>
<td class='spokesoft_srs_clean_tbody'>asset.ACCOUNT_ID</td>
<td class='spokesoft_srs_clean_tbody'>asset.LOCATION_ID</td>
</tr>
</c:forEach>
在页面打印过了,list中有数据,求解。。。 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询