> > I didn't try the suggestions given to me, because these all include that I have to modify servlet engine's (Tomcat's) default configuration which isn't
> good ... > Any web application should have all it's requirements (including configurations) under it's directory, thus be able to be dropped inside servlet engine's > /webapps directory and to work instantly. > As far as I understand, sample web app called 'newapp' inside TDK is called by URL: > http://localhost:8080/newapp/servlet/newapp > Since pattern of URL has /servlet/ in itself, by servlet specs it means that part at the end should be name of servlet (for eg. > org.apache.turbine.SOMEServlet), and since it is obvious that it's not the case above, it has to be some mapping name for that servlet ... These mappings > should be declared in newapp's WEB-INF/web.xml file, but I don't see any ?! > > Some help? > > -Vjeran Hi Vjeran, The links I posted earlier should satisfy your requirements. Basically, at the bottom of the Application's web.xml web-app section, I added this: <servlet-mapping> <servlet-name>newapp</servlet-name> <url-pattern>/servlet/newapp</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>newapp</servlet-name> <url-pattern>/servlet/newapp/*</url-pattern> </servlet-mapping> (Earlier in the file, the servlet-class for the servlet-name newapp is indicated to be org.apache.turbine.Turbine) I put 2 since and I didn't want to have /servlet/newapp* since it could map to /servlet/newapplication or whatever, which may be a security risk (I have no idea), but you need servlet/newapp/* for all the actions to map properly. Good luck, David --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
