Search code examples
javasslstruts2httpsstruts

Struts2 redirectAction is not https?


One of my result mapping type is a "redirectAction" in struts.xml which when executed constructs a NON secure link... Why is that? I wanted to constructs secure link using "redirectAction" what should I do?

<result type="redirectAction" name="auth_stat">
    <param name="actionName">auth_stat</param>
</result>

Solution

  • Use a redirect result

    <result type="redirect" name="auth_stat">
        <param name="location">https://www.yourserver.com/auth_stat</param>
    </result>