关于在jsp中的表达式

列子:

<%List<F_dd_tourist_info_markup> tourists = (List<F_dd_tourist_info_markup>) request.getAttribute("tourists");%>

</tr>
<%
for (F_dd_tourist_info_markup tourist : tourists) {
request.setAttribute("tourist", tourist);
%>
<tr />
</td>

 

设置个request.setAttribute("tourist", tourist);下面就可以用${tourist.属性名}调用

相当于<%=%>

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-18
  • 2021-06-14
  • 2022-12-23
  • 2022-12-23
  • 2022-01-19
  • 2021-09-06
猜你喜欢
  • 2021-08-20
  • 2021-12-26
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
相关资源
相似解决方案