Hello,
I want to load the static resources from the JAR, and portlet 2.0 has a new feature .....
public void serveResource(ResourceRequest request, ResourceResponse response)
Anyway, if I want to load a CSS from JAR, but in the CSS, it has some background image, how can I do that? For example, in the CSS :
#logoName {
background-image: url( images/logo.gif );
background-repeat: no-repeat;
float: left;
width: 250px;
height: 25px;
z-index: 2;
position: absolute;
left: 20px;
top: 10px;
}
In above styles, I have a image logo.gif in the CSS file. But in the serveResource(..) method, I just need to load the CSS file and output it to the page. But it cannot load the logo.gif.
How can it load automatically or I have to load it by manually?
Best regards,
Eric