This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSP and the fly likes Image & Stream in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » JSP
Bookmark "Image & Stream in JSP" Watch "Image & Stream in JSP" New topic

Image & Stream in JSP

Rajan Chinna
Ranch Hand

Joined: Jul 01, 2004
Posts: 320
I would like to display an Image file and html file content in the JSP.
My JSP code is

The above code displays the image at the bottom instead at top of the page. Can I achieve it in this way?
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
The better way of adding HTML file to a JSP file is using include tag like this:

<jsp:inlcude page="c:/report.html" />

I hope it is right & helpful.
Rajan Chinna
Ranch Hand

Joined: Jul 01, 2004
Posts: 320
Rathi thanks for ur response.

<jsp:include page="c:/report.html" />
is not working cannot display the page, i think it works only if the page is in the same web context, but my file is located else where in c: drive.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Image & Stream in JSP
It's not a secret anymore!