• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

JSP INCLUDE

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using <jsp:include page="<%=filename%>" flush="true" /> to include an html file in my JSP. I have found that if the includes html file contains gif images, they are not displayed. Dies anyone know how I can fix this? Thanks in advance for any help.
 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I think that perhaps the path to the images in your jsp are not correct. Remeber that they are taken 'in context' from the servlet context in which they are running. Check the source of the jsp as it is displayed in your browser, and see where it is looking for the graphics.
 
Eilidh
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your response.
The html files display files fine when I open them using eg javascript window.open(...), it's just when they are viewed via jsp include that I have the problem. The html files are generated by MS Word so the embedded image is specified like " <v:imagedata src="./2_files/image001.gif" o:title="pic"/>". I was just wondering if there is any way to get round this problem with the relative path used.
 
You don't know me, but I've been looking all over the world for. Thanks to the help from this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic