summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java15
-rw-r--r--BKUOnline/src/main/webapp/applet.jsp3
2 files changed, 10 insertions, 8 deletions
diff --git a/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java b/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java
index b7b72b5..2876c56 100644
--- a/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java
+++ b/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java
@@ -165,8 +165,8 @@ public class BKUApplet extends JApplet {
if (Boolean.parseBoolean(getParameter(ENFORCE_RECOMMENDED_PIN_LENGTH))) {
SignatureCardFactory.ENFORCE_RECOMMENDED_PIN_LENGTH = true;
- log.debug("Enforce recommended pin length = {}.", SignatureCardFactory.ENFORCE_RECOMMENDED_PIN_LENGTH);
}
+ log.debug("Enforce recommended pin length = {}.", SignatureCardFactory.ENFORCE_RECOMMENDED_PIN_LENGTH);
BKUGUIFacade.Style guiStyle;
String guiStyleParam = getParameter(GUI_STYLE);
@@ -219,17 +219,20 @@ public class BKUApplet extends JApplet {
}
}
+ BKUGUIFacade gui = null;
+ URLFontLoader fontProvider = null;
+
try {
- URLFontLoader fontProvider = new URLFontLoader(getCodeBase());
+ fontProvider = new URLFontLoader(getCodeBase());
fontProvider.loadInBackground();
- BKUGUIFacade gui = createGUI(contentPanel, getLocale(), guiStyle,
- backgroundImgURL, fontProvider, helpListener, switchFocusListener);
-
- worker = createBKUWorker(this, gui);
+
} catch (MalformedURLException ex) {
log.error("Failed to load font provider URL.", ex);
System.err.println("invalid font provider URL " + ex.getMessage());
}
+ gui = createGUI(contentPanel, getLocale(), guiStyle,
+ backgroundImgURL, fontProvider, helpListener, switchFocusListener);
+ worker = createBKUWorker(this, gui);
}
@Override
diff --git a/BKUOnline/src/main/webapp/applet.jsp b/BKUOnline/src/main/webapp/applet.jsp
index 625f1f6..5782c6a 100644
--- a/BKUOnline/src/main/webapp/applet.jsp
+++ b/BKUOnline/src/main/webapp/applet.jsp
@@ -213,8 +213,7 @@
HelpURL : '<c:out value="${helpUrl}"/>',
SessionID : '<c:out value="${requestScope.id}"/>',
RedirectURL : '<c:out value="${resultUrl}"/>',
- RedirectTarget: '_parent',
- EnforceRecommendedPINLength: 'true'
+ RedirectTarget: '_parent'
};
deployJava.runApplet(attributes, parameters, '<c:out value="${minJavaVersion}"/>');
}