This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques and have Mario Casciaro & Luciano Mammino on-line!
See this thread for details.
Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

dispaly image in jsp page

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67592
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic