Author: nextgens
Date: 2007-11-22 09:55:59 +0000 (Thu, 22 Nov 2007)
New Revision: 15917
Modified:
trunk/freenet/src/freenet/clients/http/StartupToadletServer.java
Log:
StartupToadlet:
Auto-refresh every 5 sec using metas
Modified: trunk/freenet/src/freenet/clients/http/StartupToadletServer.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/StartupToadletServer.java
2007-11-22 09:34:27 UTC (rev 15916)
+++ trunk/freenet/src/freenet/clients/http/StartupToadletServer.java
2007-11-22 09:55:59 UTC (rev 15917)
@@ -3,7 +3,6 @@
* http://www.gnu.org/ for further details of the GPL. */
package freenet.clients.http;
-import freenet.config.PersistentConfig;
import freenet.support.HTMLNode;
import java.io.File;
import java.io.IOException;
@@ -85,7 +84,9 @@
} else {
String desc = "Freenet is starting up";
HTMLNode pageNode = ctx.getPageMaker().getPageNode(desc,
false, ctx);
- HTMLNode contentNode =
ctx.getPageMaker().getContentNode(pageNode);
+ HTMLNode headNode = ctx.getPageMaker().getHeadNode(pageNode);
+ headNode.addChild("meta", new String[]{"http-equiv",
"content"}, new String[]{"refresh", "5; url="});
+ HTMLNode contentNode =
ctx.getPageMaker().getContentNode(pageNode);
HTMLNode infobox =
contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-error", desc));
HTMLNode infoboxContent =
ctx.getPageMaker().getContentNode(infobox);