• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP INCLUDE

 
Eilidh
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • 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.
 
matt hooker
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!