aspose file tools*
The moose likes Servlets and the fly likes barcode in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "barcode in jsp" Watch "barcode in jsp" New topic
Author

barcode in jsp

jothish karun
Greenhorn

Joined: Oct 15, 2001
Posts: 2
Hi all,
I want to display a barcode (128 sysmbology) through jsp.Are there any libraries available which i can use in my code.Please send me the link or code.
swyatt
Greenhorn

Joined: Oct 16, 2001
Posts: 1
Give this URL a try.
http://www.bokai.com/BarcodeJSP/
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16250
    
  21

Barcodes are graphical constructs, so JSP's have no inherent support of them. You have 2 options for barcodes:
1. Build up the code sequence as a graphics image to be downloaded by the user.
2. Assure that the user (client) has the appropriate barcode as a font and output HTML that selects that font at the place on the page that the barcode should appear.
Actually, I presume that somewhere this barcode is expected to be printed, since I don't know many people who run barcode readers over their monitors. Assuming such a case, you may find it convenient to build the barcode in a PDF document - which is less likely to have its output come out unusable than either of the 2 methods I listed above.


Customer surveys are for companies who didn't pay proper attention to begin with.
jothish karun
Greenhorn

Joined: Oct 15, 2001
Posts: 2
Hi,
Actually it is true that the barcode is useful only if it is printable and is then read using the barcode reader.We are developing a bill report for one of our clients where a barcode (128 symbology) also should be displayed....so that end user can take a printout from his house and pay the bill.We are implementing the application on Linux machine (using Apache-Tomcat)
If there are fonts like you have suggested are they freely distributable?? Or do we have an option where we can make an image of the barcode from the server-side and just show it through a jsp page??
Free or low-priced solutions are preferable as we are doing a trial implementation for our product and would like to keep the cost to the bare minimum
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: barcode in jsp