From 70ec208330696e4ed4c34f6d402452f1535aebdb Mon Sep 17 00:00:00 2001 From: gregor Date: Fri, 15 Apr 2005 11:03:55 +0000 Subject: =?UTF-8?q?Content-Type=20Header=20f=C3=BCr=20Response=20an=20der?= =?UTF-8?q?=20korrekten=20Stelle=20gesetzt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@288 d688527b-c9ab-4aba-bd8d-4036d912da1d --- .../egovernment/moa/spss/slinterface/filters/SL2MOAFilter.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'spss.slinterface/WEB-INF/src/at/gv/egovernment') 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) { -- cgit v1.2.3