JSPì?×a·?ê?(3)
来源:未知 责任编辑:责任编辑 发表时间:2013-12-18 11:35 点击:次
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("hello kity"); //2??áê?3?
response.sendRedirect("F?name=zhagnsan");
out.println("good"); //2??áê?3?
}
?°???ü?ó??D§£??ú?°???éò??ú×??ù±?Dèòaê±£???á?ê1ó?RequestDispatcher.forward()·?·¨
èy£o????ì?×a·?ê?
a)DT??HTTP headerμ?Locationê?D?à′???¨?ò
b)í¨1yéè???±?óDT??μ??·à?à′êμ??ò3??μ????¨?ò
c)éè??jspè??é??oó ×??ˉ???¨?ò
response.setHeader("refresh","3;url=forward2.jsp");
×¢£oóD2?íêé??ò′í?ó??′|?1????3??£
?a×? itmyhomeμ?רà?
相关新闻>>
- 发表评论
-
- 最新评论 更多>>