Operating document scanner from JSP page

J

John F.

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.
 
A

Andrew Thompson

John said:
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.
 
R

Roedy Green

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top