* Yoav Shapira > Howdy, > >>Thanks, it helped. No errors during deploy. However, I cannot get in >>touch with my servlet. I _know_ this is really newbie questions, but >>I cannot find ONE tutorial on these issues. Here is my web.xml: > > It is unfortunate that most tutorials out there (plenty exist, just > google for "servlet tutorial" for example) are out of date, especially > by assuming the presence of an invoker servlet. > >> <servlet-mapping> >> <servlet-name>hallo</servlet-name> >> <url-pattern>/*do</url-pattern> >> </servlet-mapping> > > So you would access your servlet using any URL that ends in do, e.g. > http://yourhost:yourport/yourwebapp/xdo > > The above url-pattern is probably not what you really want, although > it's legal and will work. Try something simpler instead: > <servlet> > <servlet-name>hallo</servlet-name> > <servlet-class>whatver</servlet-class> > </servlet> > <servlet-mapping> > <servlet-name>hallo</servlet-name> > <url-pattern>/halloPage</url-pattern> > </servlet-mapping> > > Then you will access your servlet by going to: > http://yourhost:yourport/yourwebapp/halloPage
Did so: 2003-06-25 10:11:25 - Ctx( /wartest ): 404 R( /wartest + /halloPage + null) null However, the index.html is reached. (Directory structure: computer> jar tf wartest.war META-INF/ META-INF/MANIFEST.MF WEB-INF/ WEB-INF/classes/ WEB-INF/classes/HelloWorld.class WEB-INF/web.xml WEB-INF/web.xml~ index.html computer> wget http://localhost:8082/wartest/index.html --> ok computer> wget http://localhost:8082/wartest/halloPage --> error -- Jon Haugsand, [EMAIL PROTECTED] http://www.norges-bank.no --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]