File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to display the image file in the jsp

 
Padma Priya
Ranch Hand
Posts: 123
  • 0
  • 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
  • 0
  • 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 ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic