摘要: 客户端跳转[代码]客户端跳转不能像目标页面传递参数(如果使用该方法非要向目标页面传递参数的话,可以可以使用session对象将参数值记录,在此不详细记录)服务器端跳转[代码] public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException{ PrintWriter out = resp.getWriter(); /* * 在servlet中实现服务器端跳转,并向跳转页面传递参数 */ req.setAttribute("name", "haiyun" 阅读全文
posted @ 2011-02-19 21:04 yunfour 阅读(56838) 评论(0) 推荐(2) 编辑