Click to See Complete Forum and Search --> : reading Key-typed event from scanner barcode


Michele
05-02-2001, 12:02 PM
I need some help figuring out if I can do this. The request I have is an employee
information screen will be up (done with Websphere) with employee fields.
An employee will scan a barcode, which shows up at my DOS prompt currently.
I need the information to come up on my form when a barcode is scanned. Is
this possible using a the key-typed event? Thanks for ANY help with this.

Paul Clapham
05-02-2001, 06:17 PM
If your barcode scanner is connected to the keyboard and acts like keyboard
input, you should be able to use whatever method of getting keyboard input
you prefer. I'm assuming you are talking about a Java application but
mentioning Websphere makes me suspicious that you may have had applets or
servlets in mind.

PC2

"Michele" <mschliec@amfam.com> wrote in message
news:3af02f78$1@news.devx.com...
>
> I need some help figuring out if I can do this. The request I have is an
employee
> information screen will be up (done with Websphere) with employee fields.
> An employee will scan a barcode, which shows up at my DOS prompt
currently.
> I need the information to come up on my form when a barcode is scanned. Is
> this possible using a the key-typed event? Thanks for ANY help with this.
>

Michele
05-03-2001, 12:15 PM
Thanks Paul,
When I scan the data goes to the DOS PROMPT I'm not sure what is the best
way to watch for it and catch it. I am using Websphere and thought I would
use a servlet and then use keyTyped method and well more reading...

"Paul Clapham" <pclapham@core-mark.com> wrote:
>If your barcode scanner is connected to the keyboard and acts like keyboard
>input, you should be able to use whatever method of getting keyboard input
>you prefer. I'm assuming you are talking about a Java application but
>mentioning Websphere makes me suspicious that you may have had applets or
>servlets in mind.
>
>PC2
>
>"Michele" <mschliec@amfam.com> wrote in message
>news:3af02f78$1@news.devx.com...
>>
>> I need some help figuring out if I can do this. The request I have is
an
>employee
>> information screen will be up (done with Websphere) with employee fields.
>> An employee will scan a barcode, which shows up at my DOS prompt
>currently.
>> I need the information to come up on my form when a barcode is scanned.
Is
>> this possible using a the key-typed event? Thanks for ANY help with this.
>>
>
>

Paul Clapham
05-04-2001, 11:34 AM
Servlets are designed to receive requests from browsers and send HTML
responses back to browsers. So a servlet would not be a good choice for
connecting a barcode reader.

Just write a simple program that reads lines from System.in. Then see if it
gets the data that you say "goes to the DOS prompt". If it waits for input,
press Enter and see if it gets the data then.

Also, see if there is any technical documentation for the barcode scanner
that explains how its PC interface works.

PC2

"Michele" <mschliec@amfam.com> wrote in message
news:3af18417$1@news.devx.com...
>
> Thanks Paul,
> When I scan the data goes to the DOS PROMPT I'm not sure what is the best
> way to watch for it and catch it. I am using Websphere and thought I would
> use a servlet and then use keyTyped method and well more reading...
>