I'm working thru a JSP book now, and am doing well overall. But, I don't think I'm understanding "paths" sufficiently. I would like some general help paths used during compilation of java and jsp files, using my setup. (After getting better knowledge about paths, I can probably answer my own questions about my compilation problems.)
Following is some info about my directory structure, environment variables, etc. Specific questions at bottom.
JAVA_HOME = C:\J2ee142\j2eeri1.4-src\p
TOMCAT_HOME = C:\Program Files\Apache Group\Tomcat 5.0\
Path = %SystemRoot%\system32;%Sys
Example From Book
(Book instructed me to create) One JSP file in the C:\Program Files\Apache Group\Tomcat 5.0\webapps\Book\jsp directory.
(Book instructed me to create) Two JAVA files in the C:\Program Files\Apache Group\Tomcat 5.0\webapps\Book\WEB-INF\C
I start the Tomcat 5.0 server, then in Internet Explorer enter... http://localhost:8080/Book/jsp/ExpenseReport.jsp
and get some errors I don't understand. But, for the moment, I don't want to get into my compilation errors. I would like some information about what is happening as far as search and compilation paths.
Question #1: The JSP file is in an entirely different directory from the two JAVA (compiled to class) files. How does the JSP file in ...\webapps\Book\jsp find the Class files in the ...\webapps\Book\WEB-INF\C
Question #2: When I call the jsp file from my browser it looks like it compiles it into a Java file, that it (I think) tries to convert to a class file. This activity seems to occur in the C:\Program Files\Apache Group\Tomcat 5.0\work\Catalina\localhos
p\jsp\ directory. What is happening here? is this directory a scratch working directory that is auto-created when a JSP file is called?
More details if needed.