<property name="Name" value="Uwobo"/>
<property name="name" value="uwobo"/>
- <property name="version" value="1.2.0"/>
+ <property name="version" value="1.2.1beta"/>
<property name="serialization_dir" value=""/>
<property file=".${name}.properties" />
public class Server {
private static class Style implements Serializable {
public String fileName;
- public long lastModified;
public Templates stylesheet;
};
Style style = (Style)hashMap.get(key);
if (style.fileName.equals(filename)) {
String msg =
- "Warning: Stylesheet already loaded. Reloading...";
+ "Warning: Stylesheet already loaded. Request ignored.";
log(msg);
- String msg2 = reload(key);
- return htmlOfWarning(msg) +
- (msg2.equals("") ? "" : "<br />" + msg2);
+ return htmlOfWarning(msg);
} else {
String res =
"Error: There is already a stylesheet with keyword \""+
Style style = new Style();
style.fileName = filename;
- style.lastModified = new File(filename).lastModified();
String res = compileStylesheet(style,key);
log("done!");
Style style = (Style)hashMap.get(key);
if (style != null) {
log("reloading \"" + key + "\"... ");
- style.lastModified = new File(style.fileName).lastModified();
res= compileStylesheet(style,key);
log("done!");
} else {
}
String local = e.getLocalizedMessage();
local = local.substring(local.lastIndexOf(':')+1);
- return "<b>"+message+": "+local+"</b><br />";
+ return "<b style=\"color: red\">"+message+": "+local+"</b><br />";
}
public void doGet(HttpServletRequest request, HttpServletResponse response)
if(!log.equals(""))
out.println(msg_out(log));
} catch (TransformerConfigurationException tce) {
- out.println(exc_out("stylesheet error", tce));
+ out.println(exc_out("Stylesheet Error", tce));
} catch (Exception e) {
out.println(exc_out(null, e));
}
out.println(msg_out(server.reload(data[i])));
}
} catch (TransformerConfigurationException tce) {
- out.println(exc_out("stylesheet error", tce));
+ out.println(exc_out("Stylesheet Error", tce));
} catch (Exception e) {
out.println(exc_out(null, e));
}