严重: Servlet.service() for servlet [jsp] in context with path [/imooc_jspstudy] threw exception [An exception occurred processing JSP page /response.jsp at line 19
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<h1>response内置对象</h1>
<hr>
<%=request.getContextPath() %>
<%
out.print("<p>你好!</p>");
out.flush();
PrintWriter outer = response.getWriter();
outer.print("这是response的输出流用法");
response.sendRedirect("request.jsp");
%>
</body>
</html>
Stacktrace:] with root cause
java.lang.IllegalStateException: Cannot call sendRedirect() after the response has been committed
慕妹8769748
慕妹8769748
echo_kinchao