I am using Tomcat version 5.5. I have verified that Tomcat indeed works by executing http://localhost:8080. I have written a simple jsp program and is stored under my home directory.
Do I have to necessarily copy the jsp program somewhere under Tomcat directory to run the jsp or it can still reside under my home directory and make the program run by making some configuration change/path setting?
Haven't tried this, but you can configure the <Context> of a web application with the "docbase" attribute set to a specific directory. Not sure if it can be outside the Tomcat directory, though.
I would advise against this approach, though. It's too easy to make available the contents of your home directory to the world by mistake, which you definitely don't want to do.
Not sure if it can be outside the Tomcat directory, though.
Yes, you can create a context anywhere on the file system.
C Broussard
Greenhorn
Joined: Jun 18, 2004
Posts: 28
posted
0
I realize this is somewhat outside of the topic mentioned. But I would look into getting an IDE to do development. I use eclipse, I have my workspace setup in my home directory, and then I deploy out to tomcat/jboss. i also use myeclipseide.com, and that helps simplify things further.
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12266
1
posted
0
You don't need a big IDE to set up a convenient environment that separates development directories from deployment directories. I use UltraEdit-32 plus ANT. There is a bit of a learning curve to ANT but you don't have to learn the whole monster to start getting major benefits. Bill
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.