J
JGH
I created some java classes on a tomcat server. Now I want to use them in a
jsp page. I copied the .class files to $CATALINA_HOME/webapps/ROOT/WEB-
INF/classes/ and was able to access them.
However, the server doesn't seem to notice if I make a change to one of the
..class files. I have to make a change to the .jsp page that uses the
class. I've gotten in the habit of adding a space and then deleting it and
then saving the source code for the .jsp page each time I make a change to
one of the .java files and recompile to create a new .class file.
I tried putting the .java files in the .../classes directory because I had
read that this would work. But I got an error message that said my classes
were missing.
Besides, I don't want to put my source code in the tomcat space. When I'm
done with it, maybe. But I'm still working on it and I want it in a subdir
of my own home directory.
So I guess this is a 2 part question: How do you manage your source code?
And how do I get tomcat to recognize that I've changed a .class file?
jsp page. I copied the .class files to $CATALINA_HOME/webapps/ROOT/WEB-
INF/classes/ and was able to access them.
However, the server doesn't seem to notice if I make a change to one of the
..class files. I have to make a change to the .jsp page that uses the
class. I've gotten in the habit of adding a space and then deleting it and
then saving the source code for the .jsp page each time I make a change to
one of the .java files and recompile to create a new .class file.
I tried putting the .java files in the .../classes directory because I had
read that this would work. But I got an error message that said my classes
were missing.
Besides, I don't want to put my source code in the tomcat space. When I'm
done with it, maybe. But I'm still working on it and I want it in a subdir
of my own home directory.
So I guess this is a 2 part question: How do you manage your source code?
And how do I get tomcat to recognize that I've changed a .class file?