Supprimer un message
kevingobert
Index.html
[html<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>eID Detection</title>
</head>
<body>
<h1>Détection eID</h1>
<div id="appletMessage">
</div>
<script src="https://www.java.com/js/deployJava.js"></script>
<script>
var attributes = {
code :'be.fedict.eid.applet.Applet.class',
archive :'eid-applet-package-1.1.3.jar',
width :1,
height :1
};
var parameters = {
TargetPage :'identity-result.jsp',
AppletService : 'applet-service',
MessageCallback :'messageCallback',
BackgroundColor : '#ffffff'
};
var version = '1.6';
deployJava.runApplet(attributes, parameters, version);
function messageCallback(status, message) {
console.log(status);
document.getElementById('appletMessage').innerHTML = '<b>' + status + ': ' + message + '</b>';
}
</script>
</body>
</html>[/html]
web.xml
[xml<servlet>
<servlet-name>AppletServiceServlet</servlet-name>
<servlet-class>
be.fedict.eid.applet.service.AppletServiceServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>AppletServiceServlet</servlet-name>
<url-pattern>/applet-service</url-pattern>
</servlet-mapping>[/xml]
[imghttps://dl.dropboxusercontent.com/u/24590371/CaptureE2%80%99%C3%A9cran%2020- 15-10-20%20%C3%A0%2020.35.27.png[/img]
[html<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>eID Detection</title>
</head>
<body>
<h1>Détection eID</h1>
<div id="appletMessage">
</div>
<script src="https://www.java.com/js/deployJava.js"></script>
<script>
var attributes = {
code :'be.fedict.eid.applet.Applet.class',
archive :'eid-applet-package-1.1.3.jar',
width :1,
height :1
};
var parameters = {
TargetPage :'identity-result.jsp',
AppletService : 'applet-service',
MessageCallback :'messageCallback',
BackgroundColor : '#ffffff'
};
var version = '1.6';
deployJava.runApplet(attributes, parameters, version);
function messageCallback(status, message) {
console.log(status);
document.getElementById('appletMessage').innerHTML = '<b>' + status + ': ' + message + '</b>';
}
</script>
</body>
</html>[/html]
web.xml
[xml<servlet>
<servlet-name>AppletServiceServlet</servlet-name>
<servlet-class>
be.fedict.eid.applet.service.AppletServiceServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>AppletServiceServlet</servlet-name>
<url-pattern>/applet-service</url-pattern>
</servlet-mapping>[/xml]
[imghttps://dl.dropboxusercontent.com/u/24590371/CaptureE2%80%99%C3%A9cran%2020- 15-10-20%20%C3%A0%2020.35.27.png[/img]