This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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

Win a copy of Head First Android this week in the Android forum!
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: 12982
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!