在1中
<%String params="ABC";%>
<a href='2.jsp?abc="+params+"' >
在2中
<%String abc=request.getParameter("abc")%>