Try setting the following 2 response header response.setHeader("Pragma", "public"); response.setHeader("Cache-Control", "max-age=0");
- Jim -----Original Message----- From: sudip shrestha [mailto:[EMAIL PROTECTED] Sent: Friday, April 15, 2005 9:54 PM To: Struts Users Mailing List; Tomcat Users List Subject: ssl-forwarding filter not working in IE 6 Hi : I have following code for automatic ssl-forwarding filter: public void doFilter(ServletRequest servletrequest, ServletResponse servletresponse, FilterChain filterchain) throws IOException, ServletException { String s = servletrequest.getScheme(); if( !s.equalsIgnoreCase("http") ) { //System.out.println( "Normal filter Operation----" ); filterchain.doFilter(servletrequest, servletresponse); } else { HttpServletResponse response = (HttpServletResponse)servletresponse; HttpServletRequest request = (HttpServletRequest)servletrequest; //System.out.println( "currPort: "+request.getServerPort() ); String url = "https://" + request.getServerName(); //System.out.println( "currUrl: "+url ); url = url + ":" + PORT; //System.out.println( "currUrl: "+url ); url = url + request.getRequestURI(); //System.out.println( "currUrl: "+url ); String queryStr = request.getQueryString(); if( queryStr!=null ) url = url + "?" + queryStr; //System.out.println( "currUrl: "+url ); response.sendRedirect(url); return; } } This works perfectly in Firefox. However, IE just sits there till it throws me a "page cannot be displayed". If I directly type secure url, e.g., https://domain.com/siteAdd, it works in IE as well, but IE just cannot seem to forward it to the secure url from the plain url. Any suggestions? ************************************************************************ The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorized. If you are not an intended recipient, please notify the sender of this email immediately. You should not copy, use or disseminate the information contained in the email. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Capco. http://www.capco.com/ ************************************************************************ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]