aspose file tools*
The moose likes Other Application Frameworks and the fly likes [SOLVED] images fail to load in spring2.5/tiles2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "[SOLVED] images fail to load in spring2.5/tiles2" Watch "[SOLVED] images fail to load in spring2.5/tiles2" New topic
Author

[SOLVED] images fail to load in spring2.5/tiles2

Johnny Gara
Ranch Hand

Joined: Mar 09, 2007
Posts: 43
This seems like a ridiculous question to ask but is there a reason why my images do not show up?

Setup: Spring 2.5, Tiles2
Directory setup:
app/
app/img
app/WEB-INF/
app/WEB-INF/jsp

My web.xml file:


my app-servlet.xml


and my tile for this is a simple



And all i get is broken images
Am I missing something incredibly simple here?
[ July 18, 2008: Message edited by: Johnny Gara ]
Johnny Gara
Ranch Hand

Joined: Mar 09, 2007
Posts: 43
solved it

Note, not really spring related, more j2ee, but you cannot send all requests to the servlet (unless they can handle all types of requests). SO in my web.xml, the url-mapping for the myapp servlet should actually be restricted to *.html or something. That way .gif's and .jpgs are left alone.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [SOLVED] images fail to load in spring2.5/tiles2
 
Similar Threads
unsatisfied Dependancy exception
BeanDefinitionStoreException when running Spring web app
HibernateException: No Hibernate Session bound to thread
Not able to render view in Spring 2.5 with Tiles2
[SOLVED] Spring 2.5 and tiles2 : can't get files to render