File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "barcode in jsp" Watch "barcode in jsp" New topic

barcode in jsp

jothish karun

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.

Joined: Oct 16, 2001
Posts: 1
Give this URL a try.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16914

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

Joined: Oct 15, 2001
Posts: 2
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 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
wood burning stoves
subject: barcode in jsp
It's not a secret anymore!