diff options
Diffstat (limited to 'BKUOnline/src/main')
-rw-r--r-- | BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/MoccaParameterBean.java | 12 | ||||
-rw-r--r-- | BKUOnline/src/main/webapp/applet.jsp | 2 |
2 files changed, 10 insertions, 4 deletions
diff --git a/BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/MoccaParameterBean.java b/BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/MoccaParameterBean.java index 9cb9360c..aba12365 100644 --- a/BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/MoccaParameterBean.java +++ b/BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/MoccaParameterBean.java @@ -53,16 +53,18 @@ public class MoccaParameterBean { public static final String PARAM_APPLET_HEIGHT = "appletHeight"; public static final String PARAM_APPLET_BACKGROUND = "appletBackground"; - + + public static final String PARAM_REDIRECT_TARGET = "redirectTarget"; + public static final String PARAM_APPLET_BACKGROUND_COLOR = "appletBackgroundColor"; public static final Pattern PATTERM_APPLET_BACKGROUND_COLOR = Pattern.compile("\\#[0-9a-fA-F]{6}"); - + public static final String PARAM_APPLET_GUI_STYLE = "appletGuiStyle"; public static final String[] VALUES_APPLET_GUI_STYLE = new String[] {"tiny", "simple", "advanced"}; public static final String PARAM_APPLET_EXTENSION = "appletExtension"; public static final String[] VALUES_APPLET_EXTENSION = new String[] {"pin", "activation", - "getcertificate", "hardwareinfo", "identity"}; + "getcertificate", "hardwareinfo", "identity"}; public static final String PARAM_LOCALE = "locale"; public static final Pattern PATTERN_LOCALE = Pattern.compile("[a-zA-Z][a-zA-Z](_[a-zA-Z][a-zA-Z]){0,2}"); @@ -134,6 +136,10 @@ public class MoccaParameterBean { return null; } + public String getredirectTarget() { + return getString(PARAM_REDIRECT_TARGET); + } + public String getGuiStyle() { String guiStyle = getString(PARAM_APPLET_GUI_STYLE); if (guiStyle != null && !guiStyle.isEmpty()) { diff --git a/BKUOnline/src/main/webapp/applet.jsp b/BKUOnline/src/main/webapp/applet.jsp index fff4d7c2..aada7f14 100644 --- a/BKUOnline/src/main/webapp/applet.jsp +++ b/BKUOnline/src/main/webapp/applet.jsp @@ -222,7 +222,7 @@ HelpURL : '<c:out value="${helpUrl}"/>', SessionID : '<c:out value="${requestScope.id}"/>', RedirectURL : '<c:out value="${resultUrl}"/>', - RedirectTarget: '_parent' + RedirectTarget: '<c:out value="${requestScope.moccaParam.redirectTarget}" default="_parent"/>' }; deployJava.runApplet(attributes, parameters, '<c:out value="${minJavaVersion}"/>'); } |