wood burning stoves 2.0*
The moose likes JSP and the fly likes Unable to display the image file in the jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Unable to display the image file in the jsp" Watch "Unable to display the image file in the jsp" New topic
Author

Unable to display the image file in the jsp

Padma Priya
Ranch Hand

Joined: Feb 01, 2007
Posts: 113
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

Joined: Aug 13, 2007
Posts: 34
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 ]

Winay Kumar<br />SCJP 5.0
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Unable to display the image file in the jsp