#
#DEVELOPING TOMCAT APPLICATIONS
applic jakub developing apps with tomcat following tutorial
in tomcat docu
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/appdev/index.html

#mkdir TOMCAT_HOME/webapps/jakub
#mkdir TOMCAT_HOME/webapps/jakub/WEB-INF/lib
#mkdir TOMCAT_HOME/webapps/jakub/WEB-INF/classes

1. 
vi TOMCAT_HOME/conf/server.xml
and make new context for jakub
like this



2.
you can have separate source tree at least when using ant1.2
like this
total 8
-rw-r--r--    1 jakub    jakub         567 Jan 13 23:38 build.bat
-rw-r--r--    1 jakub    jakub         472 Jan 15 19:13 build.sh
-rw-r--r--    1 jakub    jakub        2276 Jan 15 18:41 build.xml
drwxr-xr-x    2 jakub    jakub        1024 Jan 15 18:33 etc
drwxr-xr-x    2 jakub    jakub        1024 Jan 15 18:00 src
drwxr-xr-x    2 jakub    jakub        1024 Jan 15 18:03 web

./etc:
total 1
-rw-r--r--    1 jakub    jakub         657 Nov  4 15:42 web.xml

./src:
total 6
-rw-r--r--    1 jakub    jakub        5241 Mar 27  2000 Hello.java

./web:
total 2
-rw-r--r--    1 jakub    jakub         975 Mar 27  2000 hello.jsp
-rw-r--r--    1 jakub    jakub         608 Jan 15 17:55 index.html

3.
make sure you have all the correct stuff pulled in
by editing buils.sh and check that you have all the jar-s
e.g. i had to add servlet.jar
-changes to the name of your app can be done by editing build.xml

4.
./build.sh all
should build webapps/jakub as requested

5.
now just you have to restart tomcat for the context in server.xml to become active