Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是显示发送的参数的正确方法吗,
response.sendRedirect("index.jsp?a="+1); alert(<%=request.getParameter("a")%>);
response.sendRedirect("nextPage.jsp?paramName=someValue");
所以在 nextPage.jsp 你必须写
String value = request.getParameter("paramName");
获取参数值。