public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException
{
HttpServletRequest request = (HttpServletRequest) servletRequest;
HttpServletResponse response = (HttpServletResponse) servletResponse;
ExternalContext externalContext = new ServletExternalContextImpl(_servletContext,
servletRequest,
servletResponse);
JavascriptUtils.setJavascriptDetected(externalContext, true); // mark the session to use javascript
log.info("Enabled JavaScript for session - redirect to" + request.getParameter("goto"));