Re: Tomcat can not locate the folders of CSS files inside a web app, if the url-pattern of a servlet is set to / inside web.xml

2016-03-07 Thread Junqiang Zhang
Thank all you guys very much for replying to my post. I did map my servlet to the url-pattern "/". Is there any setting could let web browsers find the static content inside the webapp directory? If I put the static content into some other places, can web browsers find the css file? Does Jetty

Tomcat can not locate the folders of CSS files inside a web app, if the url-pattern of a servlet is set to / inside web.xml

2016-03-07 Thread Junqiang Zhang
I have tested on Tomcat versions 8.0.30, 8.0.32, and 9.0.0.M3. A web app is put inside a folder (let's say the name of the foder is mywebapp) inside the Tomcat webapps directory. The folder for css files (let's say the name of folder is css) is located inside this web app folder. There is no