• Post Reply Bookmark Topic Watch Topic
  • New Topic

Processing input from Scanner on JSP

 
H Gokulam
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a barcode scanner connected to my client PC. I would like to get the scanned information in the JSP. What is the best way to do this ?

Regards,
Hari
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't.

JSP runs on the server and has no access to the client system whatsoever.

You'll need to find a way to execute the program on the client system. Perhaps an applet or Java Web Start?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And...

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff
 
H Gokulam
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bear Bibeault,

Thank you for your quick reply.
About your comment about my name, I am not using any fictious name. It is my real name. Hari is my first name and 'G' stands for Gokulam, which is my last name. I don't understand why you have a problem with that.

And for your information, I was able to get the scanned data into the JSP, without running any program in the client pc. I managed with an additional textbox. But I need to find a better way to fire an event to indicate scan is over.

Regards,
Hari
[ June 29, 2006: Message edited by: Hari G ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hari G,

Our JavaRanch Naming Policy requires you to use a first and a last name separated by a space character.

You can use an initial for your first name but not the last.
You can change it here

Thank you for you help in this manner.

-Ben
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!