aspose file tools*
The moose likes Servlets and the fly likes how to insert image in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to insert image in jsp" Watch "how to insert image in jsp" New topic
Author

how to insert image in jsp

s vijay
Greenhorn

Joined: Aug 27, 2001
Posts: 4
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

Joined: Mar 22, 2000
Posts: 12823
    
    5
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:
 
Don't get me started about those stupid light bulbs.
 
subject: how to insert image in jsp