I've just started using Spring MVC together with EJB and JSP's. I have problems displaying the images in my jsp-pages. I'm not sure what causes this, but I've searched alot around for a solution but I just can't find anything related to this. The closest I can find concerning this issue, is something about ViewResolver, which I use for the jsp-pages:
<bean id="viewResolver"
class="org.springframework
.web.servl
et.view.In
ternalReso
urceViewRe
solver">
<property name="viewClass" value="org.springframework
.web.servl
et.view.Js
tlView"/>
<property name="prefix" value="/WEB-INF/views/" />
<property name="suffix" value=".jsp" />
</bean>
but this is just a ViewResolver on how to view jsp pages, but not everything else like, jpg, gif, css, html, js etc etc etc....
Is there dedicated ViewResolvers for different filetypes, or is it something wrong I'm doing in my jsp-pages, now I'm using the standard tag e.g. : <img src="gfx/views/demoplayer.
jpg" height="244" width="135" border="0" />
Any help will be much apriciated :)
Start Free Trial