1. <br> window.location.href='index2.jsp?xxx=123'<br> </ script></p> <p>or </p> <p>2. <a href="index2.jsp?xxx=123">Pass parameter test</a></p> <p>3.< ;jsp:forward page="index2.jsp"><br> <jsp:param name="xxx" value="123" /><br> </jsp:forward></p> <p> Both can be obtained through ${param.xxx } or <%=request.getParameter("xxx") %> in the index2.jsp page. </p> <p>Note: </p> <p></p> <p> param Its value range is Page, Request, Session, Application. <br> </p> <p> ${param.name} is equivalent to request.getParameter("name"), {param[name]} is also the same </p> <p> ${params.name} is equivalent In request.getParameterValues("name")</p> <p> Note: </p> <p> 1. ${requestScope.name} is equivalent to request.getAttribute("name")</p> <p> 2. The above does not indicate which scope to take from, so the four scopes are detected in order </p> <p> 3. It is best to use ${xxsScope.name} instead of ${param.name}</p> <br>