> > The much easier way is to create a <Context> in tomcat's server.xml > > conf file that points to your webapp dir. That way your webapp is > > always deployed and you don't have to manually copy your changes to > > tomcat al the time. See the Tomcat docs for more details > but here's my > > entry: > > > > <Context path="/freya" docBase="E:/src/Wisdom/freya/target/freya" > > debug="0"/> > > That's a nice idea, however when I use this, instead of the > webapp, only the index.html from target/myproject/ is being > loaded: In my app-web.xml I have this: > > <servlet-mapping> > <servlet-name>audiotex</servlet-name> > <url-pattern>/audiotex</url-pattern> > </servlet-mapping> > > So, url /audiotex/audiotex should work, but it doesn't. > Idea?
I don't have a lot of experience with servlet-mappings. I use the turbine standard web.xml that looks like this: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/j2ee/dtds/web-app_2.3.dtd"> <web-app> <servlet> <servlet-name>starter</servlet-name> <servlet-class>org.apache.turbine.Turbine</servlet-class> <init-param> <param-name>properties</param-name> <param-value>/WEB-INF/conf/Turbine.properties</param-value> </init-param> </servlet> </web-app> In tomcat 4.1.12 this means that you have to enable the invoker servlet, resulting in a URL like this: http://localhost:8080/freya/servlet/starter No doubt you can setup the web.xml to use a servlet mapping for the turbine servlet... check the servlet spec for info I would say. Age -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
