• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to insert image in jsp

 
s vijay
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can any one give me some sample code on how to insert a image in to jsp page.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remember two things:
1. JSP builds a HTML page - to add images, etc you have to have your JSP create normal HTML markup. If you are having problems, make a static HTML page that does what you want first.
2. JSP output is naturally character oriented because out is automatically created as a JSPWriter. You can't write binary data such as an image or PDF file with a Writer.
Bill
------------------
author of:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic