We are definitely online Nov 2. Final Exam is Dec 7; Presentation day is Dec 14, during scheduled final exam time. Hunting Errors in Tomcat - Today's catalina file will have deployments, etc; but catalina.out is where error and user output goes. * If you put print statements for debugging in the servlet, use a prefix unique to yourself, e.g. your initials followed by the message. Accessing files within servlet deployment (or above) - A file name alone will go in webapps (and belong to Tomcat, i.e. can't be deleted) * Prefaced by / goes in the top level, i.e. your servlet deployment's top level dirctory * Prefaced by /WEB-INF/ goes in that directory. Java Server Pages (JSP) - A JSP page resides on the top-level directory of your web application. * When accessed, Tomcat (or other qualified server) compiles it into a servlet - JSP is interpreted in the server, unlike Javascript, which is handled on the client-side (i.e. browser) * JSP code is executed in the server, and it is the result that is sent to the client browser. - For JSP code to be processed, the file must be of type jsp * The result of jsp code is what gets sent to the client browser. - Variables declared in a declarative element (<%! ... %>) have state. They hold a value as long as the servlet is deployed (after the first access). - Any declaration in a scriptlet (<% ... %>) has the same lifetime as the scriptlet, i.e. no state - 'page import' imports a java class - 'file import' imports a jsp (or other?) file