• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Image & Stream in JSP

 
Rajan Chinna
Ranch Hand
Posts: 320
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 320
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic