当前位置: 代码迷 >> 综合 >> jsp中通过c set 保存值,在jsp中通过request getattribute 取值
  详细解决方案

jsp中通过c set 保存值,在jsp中通过request getattribute 取值

热度:11   发布时间:2023-12-22 10:28:47.0

jsp:

<c:set var="index" value="${t.index}" scope="request"/>


jsp-java:

request.getAttribute("index")


其中scope必须写


  相关解决方案