diff options
Diffstat (limited to 'BKUOnline/src/main/java/at')
-rw-r--r-- | BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/ResultServlet.java | 18 | ||||
-rw-r--r-- | BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/UIServlet.java | 18 |
2 files changed, 20 insertions, 16 deletions
diff --git a/BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/ResultServlet.java b/BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/ResultServlet.java index 459d078c..244e2666 100644 --- a/BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/ResultServlet.java +++ b/BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/ResultServlet.java @@ -26,8 +26,8 @@ package at.gv.egiz.bku.online.webapp; import java.io.IOException; import java.io.OutputStream; -import java.net.MalformedURLException; -import java.net.URL; +//import java.net.MalformedURLException; +//import java.net.URL; import java.util.Map; import java.util.Map.Entry; @@ -68,12 +68,14 @@ public class ResultServlet extends HttpServlet { } String url = getServletConfig().getInitParameter("expiredPageUrl"); if (url != null) { - try { - expiredPageUrl = new URL(url).toString(); - log.info("Init expiredPageUrl to: {}.", expiredPageUrl); - } catch (MalformedURLException e) { - log.error("Failed to set expiredUrlPage {}.", url, e); - } +// try { +// expiredPageUrl = new URL(url).toString(); +// log.info("Init expiredPageUrl to: {}.", expiredPageUrl); +// } catch (MalformedURLException e) { +// log.error("Failed to set expiredUrlPage '{}': {}.", url, e); +// } + expiredPageUrl = url; + log.info("Init expiredPageUrl to: {}.", expiredPageUrl); } } diff --git a/BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/UIServlet.java b/BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/UIServlet.java index b3d1cc29..516f75ea 100644 --- a/BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/UIServlet.java +++ b/BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/UIServlet.java @@ -26,8 +26,8 @@ package at.gv.egiz.bku.online.webapp; import java.io.IOException; -import java.net.MalformedURLException; -import java.net.URL; +//import java.net.MalformedURLException; +//import java.net.URL; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; @@ -55,12 +55,14 @@ public class UIServlet extends HttpServlet { public void init() throws ServletException { String url = getServletConfig().getInitParameter("expiredPageUrl"); if (url != null) { - try { - expiredPageUrl = new URL(url).toString(); - log.info("Init expiredPageUrl to: {}.", expiredPageUrl); - } catch (MalformedURLException e) { - log.error("Failed to set expiredUrlPage {}.", url, e); - } +// try { +// expiredPageUrl = new URL(url).toString(); +// log.info("Init expiredPageUrl to: {}.", expiredPageUrl); +// } catch (MalformedURLException e) { +// log.error("Failed to set expiredUrlPage '{}': {}.", url, e); +// } + expiredPageUrl = url; + log.info("Init expiredPageUrl to: {}.", expiredPageUrl); } } |