I was wondering if it was possible to maintain a directory structure within the application folder in side webapps folder, i.e. I have created a folder called ITC357, which acts as my application folder which carries all my files, so the directory path is as follows:
C:/Program Files/Tomcat5/webapps/ITC357
I’m doing an assignment and I would like to deploy that ITC357 in a separate folder can I do this? if so how?
It is not clear what you are asking:
If you asking if it is possible to have directories inside
C:/Program Files/Tomcat5/webapps/ITC357then the answer is “Yes”.If you are asking if it is possible to put your webapps file in a separate directory then the answer is “Inadvisable”. The tomcat framework looks for certain files within the
webapps/<name>tree; e.g. acontext.xmlfile, aweb.xmlfile, classes / JARs, etc. You could code your servlet to look for other things in other places, but this causes various problems with deployment (and undeployment) and security.If that doesn’t cover it, please clarify your question.