Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Johnny Gara
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic