Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to display the image file in the jsp

 
Padma Priya
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Everyone,


I have just started learning Jsps and i am getting this problem with displaying the image in the jsp page.

My web application is MyJspExamples.Under this i have image1.jpg and all my Jsp files

here is the code of my Jsp page:


<html><body>

<img src="image1.jpg" width="300" height="400"/>
<em><strong>WE KNOW HOW TO MAKE A SOAP SUCK LESS</strong></em>
<br>
</body>
</html>


Can anyone help me out

Thanks in advance
Deepthi
 
winay Kumar
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
your script is ok. there might be a problem with Image file. Try with different image file or give absolute path for src .
[ October 16, 2007: Message edited by: Jagadabi Vinay Kumar ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic