File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

how to insert image in jsp

s vijay

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

Joined: Mar 22, 2000
Posts: 13037
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.
author of:
I agree. Here's the link:
subject: how to insert image in jsp
It's not a secret anymore!