diff options
author | gregor <gregor@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2005-04-15 11:03:55 +0000 |
---|---|---|
committer | gregor <gregor@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2005-04-15 11:03:55 +0000 |
commit | 70ec208330696e4ed4c34f6d402452f1535aebdb (patch) | |
tree | 07653895f124ea31a1bb23249ee542a67edbdc5f | |
parent | 844ae3f1ed9c5c59293b85c29c9b0e29931d3ad8 (diff) | |
download | moa-id-spss-70ec208330696e4ed4c34f6d402452f1535aebdb.tar.gz moa-id-spss-70ec208330696e4ed4c34f6d402452f1535aebdb.tar.bz2 moa-id-spss-70ec208330696e4ed4c34f6d402452f1535aebdb.zip |
Content-Type Header für Response an der korrekten Stelle gesetzt.
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@288 d688527b-c9ab-4aba-bd8d-4036d912da1d
-rw-r--r-- | spss.slinterface/WEB-INF/src/at/gv/egovernment/moa/spss/slinterface/filters/SL2MOAFilter.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/spss.slinterface/WEB-INF/src/at/gv/egovernment/moa/spss/slinterface/filters/SL2MOAFilter.java b/spss.slinterface/WEB-INF/src/at/gv/egovernment/moa/spss/slinterface/filters/SL2MOAFilter.java index 084633728..bcc797532 100644 --- a/spss.slinterface/WEB-INF/src/at/gv/egovernment/moa/spss/slinterface/filters/SL2MOAFilter.java +++ b/spss.slinterface/WEB-INF/src/at/gv/egovernment/moa/spss/slinterface/filters/SL2MOAFilter.java @@ -81,6 +81,12 @@ public class SL2MOAFilter implements Filter public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { + // It is necessary to set the content type header already here, because for any unknown reason setting + // it in the response JSP page has no effects at all. Perhaps any of the filters or the like already + // writes to the response output stream. + HttpServletResponse httpResponse = (HttpServletResponse) response; + httpResponse.setHeader("Content-Type", "text/html; charset='ISO-8859-1'"); + // Create session HttpSession session = ((HttpServletRequest) request).getSession(true); @@ -170,11 +176,10 @@ public class SL2MOAFilter implements Filter logger_.debug("Finnished creating bean with info about checks."); // Include jsp page, which writes the overview information about the verified signature - response.setContentType("text/html"); try { RequestDispatcher dispatcher = request.getRequestDispatcher("/pages/resultOverview.jsp"); - dispatcher.include(request, response); + dispatcher.include(request, response); } catch (IOException e) { |