troubleshooting Question

Understanding Paths while Calling JSP File

Avatar of LarryAndro
LarryAndro asked on
23 Comments1 Solution448 ViewsLast Modified:
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.

Environment Variables
JAVA_HOME = C:\J2ee142\j2eeri1.4-src\\WINNT4.0_DBG.OBJ\jdk
TOMCAT_HOME = C:\Program Files\Apache Group\Tomcat 5.0\
Path = %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;C:\Program Files\UltraEdit;C:\J2ee142\j2eeri1.4-src\\WINNT4.0_DBG.OBJ\jdk\BIN

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\Classes\Scripting directory.

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\Classes\Scripting directory?  

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\localhost\Book\org\apache\jsp\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.  
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 23 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 23 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros