我有一办法,在php页面中用javaScript传值
<Script>
location.href ="test2.jsp?php="+<%php变量%>;
</Script>
然后在jsp页面取得变量
request.getParameter("php")