• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

dispaly image in jsp page

 
Ranch Hand
Posts: 61
  • 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
 
Greenhorn
Posts: 1
  • 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.
 
Marshal
Posts: 67449
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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.
    Bookmark Topic Watch Topic
  • New Topic