summaryrefslogtreecommitdiff
path: root/BKUOnline/src/main/java
diff options
context:
space:
mode:
authortkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2012-03-13 19:59:32 +0000
committertkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2012-03-13 19:59:32 +0000
commit2e0ebb53207f9e33d1a920c702c3b523b0f0b801 (patch)
treecfe99cfe3303f5e528fae19644923783ebc5bcc0 /BKUOnline/src/main/java
parent6832887c317048b3456e5a6d9d3cf584bd966a73 (diff)
downloadmocca-2e0ebb53207f9e33d1a920c702c3b523b0f0b801.tar.gz
mocca-2e0ebb53207f9e33d1a920c702c3b523b0f0b801.tar.bz2
mocca-2e0ebb53207f9e33d1a920c702c3b523b0f0b801.zip
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
Diffstat (limited to 'BKUOnline/src/main/java')
-rw-r--r--BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/ResultServlet.java18
-rw-r--r--BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/UIServlet.java18
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);
}
}