程序实现显示服务器端的系统时间。
由一个Clock类负责处理。其中关键代码为:
public void run() {
try {
log.debug("CLOCK: Starting server-side thread");
while (true) {
Collection sessions = sctx
[b] [color=red]?? .getScriptSessionsByPage("/tutor/tiles/header.jsp");[/color] [/b]
Util pages = new Util(sessions);
pages.setValue("displayClock", formatDate());
log.debug("CLOCK: Running...");
Thread.sleep(1000);
}
} catch (InterruptedException ex) {
ex.printStackTrace();
}
}
调试到??处时,报 The source attachment does not contain the source for the file DefaultServerContext.class.
不知道什么原因,我查看了lib下的dwr.jar有这个类DefaultServerContext.class。
请大家帮帮忙……Thank you !
[b]问题补充:[/b]
但是我的dwr.jar包里有这个org.directwebremoting.impl.DefaultServerContext.class。
怎么会是因为没有这个而出问题呢?
[b]问题补充:[/b]
jar包需要java文件才能运行吗,只有class文件不是也可以吗?
为什么dwr.jar里必须要有java文件呢,有class文件不够吗?