From 2e0ebb53207f9e33d1a920c702c3b523b0f0b801 Mon Sep 17 00:00:00 2001 From: tkellner Date: Tue, 13 Mar 2012 19:59:32 +0000 Subject: Don't try to parse expiredPageUrl as an URL git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1029 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../at/gv/egiz/bku/online/webapp/ResultServlet.java | 18 ++++++++++-------- .../java/at/gv/egiz/bku/online/webapp/UIServlet.java | 18 ++++++++++-------- 2 files changed, 20 insertions(+), 16 deletions(-) (limited to 'BKUOnline/src/main/java') 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); } } -- cgit v1.2.3