If a user has a need to scan a document and upload it, is it possible
for the client computer to operate an attached TWAIN scanner directly
via a jsp page (server from a jboss app server)? If anyone has crossed
this before, I'd love some advice.
Andrew Thompson - 31 Oct 2005 03:57 GMT
> If a user has a need to scan a document and upload it, is it possible
> for the client computer to operate an attached TWAIN scanner directly
> via a jsp page (server from a jboss app server)?
You can do anything from a JSP that you can achieve from plain
old vanilla HTML. So ..no.
> ..If anyone has crossed this before, I'd love some advice.
Code some pages in HTML to learn that, before doing too
much more JSP development.
Roedy Green - 31 Oct 2005 04:13 GMT
>If a user has a need to scan a document and upload it, is it possible
>for the client computer to operate an attached TWAIN scanner directly
>via a jsp page (server from a jboss app server)? If anyone has crossed
>this before, I'd love some advice.
Presumably you can get at the twain driver from C++ and you have docs
and a driver to do that. So some of your JNI choices are:
1. write a Java wrapper around every Twain function and do your work
from Java.
2. write a custom getDocument in C++ and invoke it is Java. It is not
general purpose.
3. Invent a higher-level interface for Java, pass the parms to C++ and
do the lower level twain stuff there.
My preference would be for (3) unless it turned out that Twain was
higher level than I would expect.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.