使用jstl访问两个jsp之间的值

我用jstl创建了两个jsp页面,我想从第二页的第一页中检索数据。

在我的第一页中


我想在第二页中使用这个变量。

我能怎么做?

谢谢

以下是使用jstl访问两个jsp之间的值的示例代码。

第一个JSP

 <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>   This JSP stores the 'para' in a session-scoped variable where the other JSPs in the web application can access it. 

Click here to view it.

第二个JSP(https://stackoverflow.com/questions/23546238/acces-value-between-two-jsp-with-jstl/displayAttributes.jsp)

 <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>   Retrieval of attributes   The para is  

在会话范围中设置属性

  

从会话范围获取属性

  

其他范围的更多样本。

  <%-- Set scoped variables --%>     <%-- Print the values --%>     

你可以将value(cursor.getId_node())放在'request'范围内,在第二个jsp中,从请求中获取值