I haven't looked at it. Creating a webpage would be nice ... I don't want it to run as a webserver because Tomcat is already taking port 80. Thanks for the tip!
PS - I got my JSP to work. Here's the code for anybody who's interested:
Edited to reflect FAHlog.txt:
Code:
<%@ page language="java" import="java.io.*" %>
<HTML>
<HEAD>
<TITLE>Folding@Home Status</TITLE>
</HEAD>
<BODY>
<FONT FACE="Courier New" Size="-1">
<%
Runtime.getRuntime().exec("cmd /c copy \"C:\\Program Files\\Folding@Home\\FAHlog.txt\" \"C:\\Program Files\\Folding@Home\\templog.txt\"").waitFor();
File logFile = new File("C:\\Program Files\\Folding@Home\\templog.txt");
String tempStr = " ";
try {
BufferedReader in = new BufferedReader(new FileReader(logFile));
while (tempStr != null){
out.println(tempStr + "<BR>");
tempStr = in.readLine();
}
} catch (IOException e) {
}
logFile.delete();
%>
</FONT>
</BODY>
</HTML>
Really simple ... just displays the contents of the log file.