It's my first post on Java Ranch.
I am developing a web application in which we need to read barcode into a text field.
The bar code is present on a physical item e.g. a book
I am concerned about populating the bar code value into the text field.
Can anybody suggest me, what is the mechanism to read a barcode and populate into a text box in jsp?
Does it include any third party jar to achieve this?
You need a barcode scanner, and a piece of software that can interface with it, and which you can integrate with the web page. It depends a bit on your scanner hardware - some come with integration software, or at least documentation that explains how to interface with it.
In the web page, a signed applet may be a possibility, or an ActiveX control (which would limit this to Internet Explorer).
Ping & DNS - updated with new look and Ping home screen widget
Vijay K Bhore
Joined: Jun 13, 2009
Thanks a lot Ulf,
Your reply was well explanatory.
In the first case, if the barcode scanner has an inbuilt integration software will the jsp page automatically will be populated with a barcode value?
Thanks and Regards,
Joined: Mar 22, 2005
I suppose it's possible to build a driver for a barcode scanner that -upon reading a barcode- automatically looks for an open web browser, and then proceeds to populate certain fields (maybe according to a naming convention), but somehow I doubt that that's how they work.
The documentation of whichever scanner you're using can tell you more about the integration possibilities.