• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to access scanner device

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Time is mother nature's way of keeping everything from happening at once. And this is a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic