条带RedirectResolution重定向到https url [英] stripes RedirectResolution redirecting to https url

查看:148
本文介绍了条带RedirectResolution重定向到https url的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我们说用户使用https访问条带动作1。一旦action1处理完成,它就会使用RedirectResolution重定向到action2。此时,浏览器使用http而不是https接收302到action2。如何在重定向到action2时让RedirectResolution使用https?

Lets say the user access a stripes action1 using https. Once action1 processing is complete, it uses RedirectResolution to redirect to action2. At this point, the browser receives a 302 to to action2 with http and not https. How will I make RedirectResolution to use https while redirecting to action2?

推荐答案

您可能需要实现自己的解决方案。例如:

You may need to implement you're own Resolution for this. For example:

return new Resolution() {
    public void execute(HttpServletRequest request, HttpServletResponse response) {
        response.sendRedirect("https://example.com/target.action");
    }
};

这篇关于条带RedirectResolution重定向到https url的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆