This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • 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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic