Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

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

 
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.
 
It's a pleasure to see superheros taking such an interest in science. And this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!