JAVA_HOME points to an istallation of the jdk so that JSPs can be converted into servlets. However, my memory of installing tomcat was that it created the JAVA_HOME environment variable for you, so just try creating a jsp and running it to see what happens, if you have problems post back and I can let you know how to set it up.
Joined: May 18, 2005
Hi Mat, I guess you have misunderstood my question.I am able to run JSPs successfully. What i am actually trying to ask is that is (D:\jdk1.3) used for only compiling JSPs and not servlets!!!
A JSP (that is not already precompiled) must be compiled on the fly by the container when a request comes in for the first time. Therefore, the container needs to know where your jdk is installed.
Servlets are already compiled by you, the developer, before putting them in the appropriate WEB-INF directory. There is no need for the container to compile them again.
JSPs are the only thing Tomcat is compiling...
“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” - Rich Cook
Hi, The short answer is a capital YES. JSP are compiled. Remember, JSPs are servlet under the hood. But you don't have to worry about how they are created or converted to servlets. The container does it for you (but on on the first request for the jsp). So, the container must know where the jsdk resides on the system, for it to use the javac. for the runing of java code, what do you think the container uses ?