• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic