14.9 Other Tips

If your servlet accesses external files (e.g., via an #include directive), remember that the current directory is not necessarily directory the servlet is in. It's probably some other directory WebKit chose. To find a file relative to the servlet's directory, prefix the path with whatever self.serverSidePath() returns (from Servlet.serverSidePath().

If you don't understand how #extends and #implements work, and about a template's main method, read the chapter on inheritance (sections 8.2 and 8.3). This may help you avoid buggy servlets.