• 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
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

problems in showing images in jsp with contentType= application /msword

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a jsp file written and its contentType is set to "application/msword"
<%@page contentType="application/msword"%>

There is an image included in the file as <img src= ... and the image exists in the correct

place. But I cant see the image in the word document.
If I set contentType to "text/html" it displays the image properly.

when jsp generates a word document there is only a frame that normally appears when the image

is not in place. But image is in place.

If you can write me how to display an image in a word document that generates through a jsp

with setting contentType to application/msword, I would be grateful.

Thanks and best regards,
Ranjith
rajith at dmsswt dot com
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Setting the content type to "application/msword" is appropriate if your streaming an existing word document to a client.

If you want to build one dynamically, however, you will probably need to find some 3rd party libraries for doing so.
 
reply
    Bookmark Topic Watch Topic
  • New Topic