print temp当然null了。
String str=request.getParameter("temp");需要在触发<a href="error.jsp?/<%=userName%>/temp=<%=i%>">后才能取到相应的值啊。
String str=request.getParameter("temp");需要在触发<a href="error.jsp?/<%=userName%>/temp=<%=i%>">后才能取到相应的值啊。
多谢!!
搞定!