Use the JSP built-in scope object session. Using its two methods setattribute (), getattribute ()
2. The following example implements the function of passing parameters of the first JSP page to the third page.
3. The Code is as follows: 1.jsp
<HTML>
<Forpolichod = get action = 2.jsp>
What 'syour name <input type = text name = username>
<Inputtype = submit value = submit>
</Form>
</Html>
4.2.jsp
<HTML>
<Forpolichod = post action = "3.jsp">
<%
Stringname = request. getparameter ("username ");
Session. setattribute ("username", name );
%>
Yourname is: <% = request. getparameter ("username") %>
<Br>
What's your holobby <input type = textname = holobby>
Password <input type = textname = PASSWORD>
<Inputtype = submit value = submit>
</Form>
</Html>
5.3.jsp
<HTML>
Yourname is: <% = session. getattribute ("username") %>
<Br>
Yourholobby is: <% = request. getparameter ("holobby") %>
Yourpassword is: <% = request. getparameter ("password") %>