aspose file tools*
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
Author

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 agree. Here's the link: http://aspose.com/file-tools
 
subject: Image & Stream in JSP