• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dispaly image in jsp page

 
ramesh poorella
Ranch Hand
Posts: 61
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please tell me how to display barcode in jsp page.... i have a barcode image in my system file... i am using img tag in my jsp.... but it is not displaying..
please help me..

this is my code. e.jpeg is barcode image



<html>
<body>
<p> </p>
<div align="center">
<center>
<IMG SRC="C:\Images\e.jpeg" width="200" height="100" >
<table border="0" cellpadding="0" cellspacing="0" width="460" bgcolor="#EEFFCA">

<tr>
<td width="100%">

</tr>
<tr>
<td width="100%"><b>  Date
and time is:  <font color="#FF0000">

<%= new java.util.Date() %>
</font></b></td>
</tr>

</table>
</center><br><br>
<input type="submit" value="PRINT" name="print" />
</div>
</body>
</html>








please give me to suggession how to display that





thanks
 
tang jizhong
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, you should be in your next project to create a images directory, and e.jpeg put inside. Then use the images / e.jpeg this relative path for a visit.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cannot use a file path. You need to use the URL to the image as it served by the container.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic