"patrick et michelle" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hi there, I'm a newcomer in Web technology and I need to understand how to > configure Tomcat 3.3 > In fact, I can see that the servlets examples offered with tomcat are > located in > tomcat\jakarta-tomcat-3.3.2\webapps\examples\web-inf\classes\whatever.class > > Although, the URL to invoke these servlets is > HTTP://localhost:8080/examples/servlet/whatever.class > > How is this URL-directory path relation done ? (through what config file / > what command / TAG ??) >
In the case of the examples, it's $TOMCAT_HOME/conf/apps-examples.xml. If TC 3.3 doesn't find a $TOMCAT_HOME/conf/apps-<myapp>.xml, it will also attempt to mount any directories found in $TOMCAT_HOME/webapps. > If I want to build a web application and want to put a new directory > structure, where do I put it and what configuration files do I have to > modify in order to be able to invoke them through a URL. If you want to put your apps someplace other than $TOMCAT_HOME/webapps, you need to change/add the <AutoWebApp> and <AutoDeploy> elements in server.xml. If you just one one app someplace else, then you can do it easier by creating an apps-<myapp>.xml file with the docBase pointing to the correct place. > > Can somebody provide me with a step-by-step ? > > Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
