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
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.
Some people, when well-known sources tell them that fire will burn them, don't put their hands in the fire.
Some people, being skeptical, will put their hands in the fire, get burned, and learn not to put their hands in the fire.
And some people, believing that they know better than well-known sources, will claim it's a lie, put their hands in the fire, and continue to scream it's a lie even as their hands burn down to charred stumps.