- Posted by: Dhanasekaran V
- Posted on: September 06 2004 08:52 EDT
We are having web based Order Managment J2EE application(JSP/Servlet) using weblogic server and Oracle 8 database.
We have a new requirement in which we need to display
Bar Code on JSP page for the user to print it for their use.?
How to dynamically generate BarCode and display ?
If any one has done similar work ,Please let me know
Thanks in advance.
- Displaying BarCode in JSP page by Stefan Emanuelsson on September 06 2004 09:04 EDT
- Displaying BarCode in JSP page by Milan Lukasak on September 07 2004 01:46 EDT
Try http://www.idautomation.com/java/ . We've done some business with them, and they have good quality software, barcode fonts, and support. I highly recommended them.
We're having an issue where we have a "headless" Solaris 9 server, meaning, no video card is installed, and we get all kinds of exceptions when trying to use ANY bar code generation software (on the server), such as servlet, class, or bean.
Any ideas out there how we can get around this?
Right now, I have the code installed on a Windows server and Tomcat to run the barcode servlet. I then stream the barcode via servlet to the Solaris box and then stream it down to the browser.
A HUGE hassle work around, but it works.
I'd rather have some other way to generate the barcode to the user from our Production Solaris server by some other means.
Sun Support is useless and simply said that cannot support code they did not write and offered no other solution.
I found this: http://forum.java.sun.com/thread.jsp?forum=20&thread=132877
Seems to solve the problem using either -Djava.awt.headless=true, or using Xvfb for pre 1.4 and/or GUI stuff.
Try Barbecue project. I've got pretty good experience.
After reading some of the links here, I was able to get a barcode generated using Krysalis, but only as a PNG. If I try any of the other formats such as .GIF, .JPG, .BMP, I get some exceptions of missing libraries.