details in my webm.xml is ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ <servlet> <servlet-name>InitialServlet</servlet-name> <servlet-class>Initialize.InitialServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>InitialServlet</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ to start my web application i type "http://127.0.0.1:8080/myProject/"
then it will call Initialize.InitialServlet to start my web app (because i use <url-pattern>/ ("/" means root,isn't it?)
then i found one problem that my pictures and my css can't be found ( can't be call )
so i tried to call pictures directly such as "http://127.0.0.1:8080/myProject/images/myButton.jpg"
instead of showing "myButton.jpg" on the screen,it send me to "http://127.0.0.1:8080/myProject/" and run "Initialize.InitialServlet"
i don't know how to fix this problem is anything wrong with my logic??? thanks pal [ January 10, 2006: Message edited by: Bear Bibeault ]
Rather than trying to map "/" -- not a good idea as you have discovered -- I'd add the servlet (using a more reasonable mapping) the the welcome-file list so that "/" will invoke it. [ January 10, 2006: Message edited by: Bear Bibeault ]