まとめ @ wiki
画面への出力を担う-outオブジェクト-
最終更新:
shells
-
view
画面への出力を担う-outオブジェクト- 【HP】
目次
ソース
out.jsp
<%@ page contentType="text/html;charset=Shift_JIS" autoFlush="true" %>
<html>
<head>
<title>バッファの制御(outオブジェクト)</title>
</head>
<body>
<%
for(int i=0;i<=10;i++){
Thread.sleep(1000);
/* データベース処理など、処理時間の長い処理 */
out.print("…");
out.flush(); // その時点でのバッファ内容を強制的に出力
}
%>
</body>
</html>実行結果
……………………………