在定时器里调用页面并弹出,可以实现吗?
附上代码:
package esystem.eshop.timers;
import java.util.Timer;
import java.util.TimerTask;
import javawebstudio.struts_db.ConnectionPool;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import
java.sql.SQLException;
import java.util.Calendar;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class infTask extends TimerTask{
private static final int C_SCHEDULE_HOUR = 9;
private static boolean isRunning = false;
private ServletContext context = null;
private ConnectionPool pool;
Connection con = null;
public infTask(ServletContext context) {
this.context = context;
}
&nb