Programming



Servlet not found!

I just wasted about 2 hours trying to figure out why my java servet won’t compile.  The answer was actually very simple, so I want to save people that time, which I wasted. The error: package javax.servlet does not exist import javax.servlet.*; ^ 1 error This caused about 10 other Read More



XUL File I/O: Write Files

Writing files in XUL isn’t that much harder than reading a file, in fact its very similar.  What a relief.  In my example I am appending the data “Appending Data” to my file. function writeFile() { var data = “Appending Data”; var filePath = “C:\\text.txt”; var file = Components.classes[“@mozilla.org/file/local;1”] .createInstance(Components.interfaces.nsILocalFile); Read More