1.后台赋值
req.setAttribute("openId",openId);
2.前台获取值
value="<%= request.getAttribute("openId") %>"
用form表单,根据name属性将值传单后台