You can put the jsp pages basically anywhere you want to. You just have to setup the context correctly in the server.xml file.
Just add the WEB-INF directory to your sitemap and everything should work fine.
 
Example:
 
site is under [...]/htdocs/mysite
 
then all classes are under [...]/htdocs/WEB-INF/classes
 
the context would read something like this

        <Context path="/mysite"
                 docBase="[...]/htdocs/mysite"           // just put the complete path here as the webbase for you  site
                 [etc...]>
        </Context>
 
If you have setup your Apache Tomcat connection correct the jsp files should automatically be served to tomcat
and with the above context set correctly the url gets automatically mapped to the correct context and therefor to the
correct path. The result is your dynamic and static stuff can reside in the same directory structure!!!
 
Stefan
 

Reply via email to