Spring 3 MVC and Tiles 2 - can't display static resources when controller @RequestMapping has URI template?

It's the way you are referring to your resources in your views. If you refer to a resource in your view as.

It's the way you are referring to your resources in your views. If you refer to a resource in your view as: resources/images-homes/pic1. Jpg it will be appended to the current controller URL.

If you use: /resources/images-homes/pic1. Jpg then it will refer to the web server root and not include your application context, assuming it is not running as root. You need to change your resource links.

I assume you are using JSP to render views. If that is the case then use c:url from the core JSTL library to provide the correct reference to your resource: before after.

Thanks skanjo. Your advice on using c:url for the picture worked perfectly! Just need one more advice from you.My css in my jsp file is like so: " type="text/css" />.

How can I apply c:url on the href with the spring:theme? I really would like to keep themes on this app. – esoriano Oct 8 at 4:53 I got it.

I just used c:set and c:url for the theme. " /> – esoriano Oct 8 at 7:41.

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


Thank You!
send