Web.xml default mapping is breaking external CCS link.

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Good morning.

I'm trying to have an instance of HomeServlet using an externally linked CSS
execute when a user enters www.myDomain.com. The HomeServlet does execute,
but the <servlet-mapping> below causes the CSS not to be applied. If I
replace the / in <url-pattern> with /homeServlet,
www.myDomain.com/homeServlet works fine.

stylesheet is in directory ROOT.

In HomeServlet:
out.println("<link rel=\"stylesheet\" type=\"text/css\"

In web.xml:

Anyone have any ideas on why this isn't working, or how how to make it work?


Site Timeline