reading Key-typed event from scanner barcode


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: reading Key-typed event from scanner barcode

  1. #1
    Michele Guest

    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.


  2. #2
    Paul Clapham Guest

    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.
    >




  3. #3
    Michele Guest

    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.
    >>

    >
    >



  4. #4
    Paul Clapham Guest

    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center