-
reading Key-typed event from scanner barcode
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.
-
Re: reading Key-typed event from scanner barcode
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.
>
-
Re: reading Key-typed event from scanner barcode
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.
>>
>
>
-
Re: reading Key-typed event from scanner barcode
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...
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks