Serving static content with Spring 3?

You are mapping your app to the root context, so you should probably include.

You are mapping your app to the root context, so you should probably include in your mvc config. Have a look at 15.12.5 in the spring docs. I wasn't able to get mvc:resources to work without that setting when my dispatcher servlet was mapped to /.

At least, that's what I seem to remember having to do when I configured this a couple of months ago in my project.

Either way having this line makes no difference. – YBB Jul 28 at 14:25 it's not redundant at all.It's only needed if you map the dispatcherservlet to the root context. The first line in the docs states "This tag allows for mapping the DispatcherServlet to "/" (thus overriding the mapping of the container's default Servlet), while still allowing static resource requests to be handled by the container's default Servlet.

" Using it without any "default-servlet-name" will use a reasonable default depending on the container, but if you have something else for the default servlet you can also configure that. – digitaljoel Jul 29 at 4:06.

– Stealth Jul 27 at 17:00 – YBB Jul 27 at 18:05 ${title} " rel="stylesheet" type="text/css"> – YBB Jul 27 at 18:05 And if I view source, the css link produces the following: – YBB Jul 27 at 18:07.

Got it fixed! Looks like there is a bug in ResourceHttpRequestHandler which only appears with Weblogic. To fix the issue: Remove Add I know some of you suggested using the default-servlet-handler but the resources mapping must be removed in order for it to work!

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions