开始页面:start.jsp
%@ page contentType="text/html; charset=GBK" %
% session.removeAttribute("task"); %
jsp:useBean id="task" scope="session" class="progress.TaskBean"/
% task.setRunning(true); %
% new Thread(task).start(); %
jsp:forward page="status.jsp"/
状态页面:status.jsp
%@ page contentType="text/html; charset=GBK" %
jsp:useBean id="task" scope="session" class="progress.TaskBean"/
HTML
HEAD
TITLEJSP进度条/TITLE
% if (task.isRunning()) { %
...[ 查看全文 ]