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.
An IDE is no substitute for an Intelligent Developer.
Joined: Oct 15, 2001
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