struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raphaël Di Cicco <rap...@gmail.com>
Subject IE complains about mixed content when doing HTTP-server-redirect with Struts
Date Thu, 01 Oct 2009 15:29:43 GMT
Hello,

it has been a few weeks that I try to solve this issue, not with success so far.
I run a website in full SSL, by using a certificate on either Tomcat
or another equipment on the network (either one doesn't change the
issue).
The issue that I have is only happenning with IE6, despite having the
option to tell IE not to complain about mixed content, IE is warning
at each page that we are about to display "secure and non secure
items".
I want to rule out a Struts problem before looking at Tomcat or more
complex infrastructure.

This pop up appears each time we are doing a "HTTP redirection" in my
application, in the sense to "forward inside the server".
We do so, to avoid refresh issues and doing the operation twice, when
for instance the previous Action is inserting data. Redirecting to a
display Action does the trick, as when you hit F5, the previous Action
repeated is only to display the page.

For instance, this is my Search Action definition :

<action path="/Search" type="...SearchAction" input="page.search"
input="..." scope="request" parameter="method">
<forward name="searchResult" path="/Search.do?method=searchResult"/>
</action>

In my process, the search method is invoked directly by POST

public ActionForward search(...)
{
    ...
    return getForwardRedirect(mapping.findForward("searchResult", true)
}

public ActionForward getForwardRedirect(final ActionForward f, boolean redirect)
 {
   ActionForward af2 = new ActionForward(af);
   af2.setPath(af.getPath())
   af2.setRedirect(redirect)
   return af2
  }

In every single case when I'm calling this redirection method, the
dreaded message appear.
Am I doing something wrong ? After all, I'm only reasoning based on
relative path, never mention any http/https ...
Any help/suggestion appreciated.

Raphaël.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message