1. How to pass parameters between multiple JSP pages? 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>
<Form method = get action = 2.jsp>
What's your name <input type = text name = username>
<Input type = submit value = submit>
</Form>
</Html>
4. 2.jsp
<HTML>
<Form method = post action = "3.jsp? Pass = 11 ">
<%
String name = request. getparameter ("username ");
Session. setattribute ("username", name );
%>
Your name is: <% = request. getparameter ("username") %>
<Br> what's your holobby <input type = text name = holobby>
<Input type = submit value = submit>
</Form>
</Html>
5. 3.jsp
<HTML>
Your name is: <% = session. getattribute ("username") %>
<Br>
Your holobby is: <% = request. getparameter ("holobby") %>
<Br>
Your password is: <% = request. getparameter ("pass") %>
<Br>
</Form>
</Html>