cancel
Showing results for 
Search instead for 
Did you mean: 

I cannot invoke applet from my jsp within alfresco

mohammed_amr
Champ in-the-making
Champ in-the-making
Dear Gurus,

I'm trying to customize manage-task-dialog.jsp page to add a button called "scan Resource" and this button is associated to applet, and that applet use the twain dll file to talk with scanner driver and scan the image.

i'm trying from 12 hours past with any successful result and till now i have the following status

- manage-task-dialog customization (done)
- applet development to talk with twain scanner driver (done) within jar file
- applet jar is imported to the WEB-INF/lib and imported to the project properties [eclipse]
- embed applet with manage-task-dialog page (failure) from the tag

<jspSmiley Tonguelugin type="applet" code="com.ds.ui.presentation.ScanningApplet"  archive="scanningApplet.jar"  ></jspSmiley Tonguelugin> or when i use the tag <applet></applet>

and the message of exception is as follow:

java.lang.ClassNotFoundException: scanningApplet

Till now an error is appear, and i need a help.

Thanks
Mohammed Amr.
4 REPLIES 4

gyro_gearless
Champ in-the-making
Champ in-the-making
Since the applet is not part of the server application, it should not go to WEB-INF/lib, but rather live in some path which is available to the client - say /res/scannerApplet.jar and then adjust <applet> tag.

BTW, i am curious which libraries did you use to talk to twain? Something opensource, homegrown or commercial?

HTH
Gyro

mohammed_amr
Champ in-the-making
Champ in-the-making
:wink:

yes thanks.

mohammed_amr
Champ in-the-making
Champ in-the-making
Smiley Very Happy

About Twain is an open source library use twain.dll by using JTwain which is contain native methods.

if you need more details i can help you and give you perfectly what you need.

Thanks
Mohammed Amr
Senior System Developer

aaditvmajmudar
Confirmed Champ
Confirmed Champ
Hi Mohammed,

I am looking for exactly same functionality  - Start Scannig process from alfresco share using Twain.

Can you please guide me how to achieve this with applet?

Thanks,
Aadit Majmudar