Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to access scanner device

 
Madhu Kaparapu
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all!
we are working on a web application which needs to interact with a scanner device for scanning some files in a JSP page.
We would like to know if there is any API which might be useful in meeting the requirement, or any solution for the problem.
Thanks,
Madhu Kumar
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65339
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the scanner on the client or server side?
 
Madhu Kaparapu
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank u for replying

Scanner is on the client side and the scanned document is to be sent to the server side and the location is to be maintained in a database column.

Regards
Madhu kumar
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65339
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In that case, JSP technology will not help you. JSP executes on the server in order to generate an HTML page to send to the client. No java executes on the client to interface to your scanner.

What you probably need to explore is an applet which can be executed by the browser on the client.

As such I've moved this topic to the Applets forum.

Oh, and by the way, please read this. It will help you out for future posts.
[ August 10, 2005: Message edited by: Bear Bibeault ]
 
Tim Holloway
Saloon Keeper
Posts: 18367
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're (note spelling) almost forced to use an applet. The only other alternative that comes to mind is an ActiveX control (nonononono!!! ) on the displayed page.

However, in order to accomplish this, you'll need two things:

1. A Java scanner API

2. The applet must be digitally signed.

Requirement #2 is a consequence of the fact that your Java scanner code is almost certainly going to have to have a JNI component, and native code is considered untrustworthy. Then again, unsigned applets aren't supposed to be able to access local devices or files, so the sandbox would have been obliged to make such a restriction anyway.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic