Al parecer el applet si se incorpora al JSP, pero no hace ninguna funcionalidad, dejo el codigo abajo. OJO el applet esta firmado.
APPLET
Código Java:
Ver original
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package sensorapplet; import com.digitalpersona.onetouch.*; import com.digitalpersona.onetouch.capture.*; import com.digitalpersona.onetouch.capture.event.*; import com.digitalpersona.onetouch.processing.*; import java.awt.*; import java.applet.Applet; /** * * @author gverastegui */ private DPFPCapture Lector = DPFPGlobal.getCaptureFactory().createCapture(); private DPFPEnrollment Reclutador = DPFPGlobal.getEnrollmentFactory().createEnrollment(); private DPFPTemplate template; public DPFPFeatureSet featuresinscripcion; public DPFPFeatureSet featuresverificacion; Image image; int j = 0; @Override public void init() { setSize(200, 200); Iniciar(); starts(); } @Override g.drawImage(image, 0, 0, 200, 200, this); } @Override public void stop() { Lector.stopCapture(); } @Override paint(g); } public void Iniciar() { Lector.addDataListener(new DPFPDataAdapter() { @Override public void dataAcquired(final DPFPDataEvent e) { j++; if (j <= 4) { ProcesarCaptura(e.getSample()); repaint(); } } }); } public void ProcesarCaptura(DPFPSample sample) { featuresinscripcion = extraerCaracteristicas(sample, DPFPDataPurpose.DATA_PURPOSE_ENROLLMENT); featuresverificacion = extraerCaracteristicas(sample, DPFPDataPurpose.DATA_PURPOSE_VERIFICATION); if (featuresinscripcion != null) { try { Reclutador.addFeatures(featuresinscripcion); image = CrearImagenHuella(sample); Reclutador.clear(); } catch (DPFPImageQualityException ex) { } } } public DPFPFeatureSet extraerCaracteristicas(DPFPSample sample, DPFPDataPurpose purpose) { try { DPFPFeatureExtraction extractor = DPFPGlobal.getFeatureExtractionFactory().createFeatureExtraction(); return extractor.createFeatureSet(sample, purpose); } catch (DPFPImageQualityException ex) { return null; } } return DPFPGlobal.getSampleConversionFactory().createImage(sample); } public void starts() { Lector.startCapture(); } public void stops() { Lector.stopCapture(); } public DPFPTemplate getTemplate() { return template; } public void setTemplate(DPFPTemplate template) { DPFPTemplate old = this.template; this.template = template; firePropertyChange(TEMPLATE_PROPERTY, old, template); } }
JSP
Código Java:
Ver original
<!DOCTYPE html> <html> <head><title>Prueba version 1.3.2</title></head> <body bgcolor="white"> <h1> DEMO HUELLA 1.0</h1> <div> <applet code="sensorapplet.HuellaApplet" archive="SensorApplet.jar" width=200 height=200></applet> </div> </body> </html>