【问题标题】:stripes RedirectResolution redirecting to https url条纹 RedirectResolution 重定向到 https url
【发布时间】:2010-10-14 09:43:12
【问题描述】:

假设用户使用 https 访问条带操作 1。一旦 action1 处理完成,它使用 RedirectResolution 重定向到 action2。此时,浏览器接收到带有 http 而不是 https 的 302 to to action2。在重定向到 action2 时如何使 RedirectResolution 使用 https?

【问题讨论】:

    标签: java https stripes


    【解决方案1】:

    您可能需要为此实现自己的Resolution。例如:

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

    【讨论】:

      猜你喜欢
      • 2021-06-30
      • 2017-07-15
      • 2015-11-02
      • 1970-01-01
      • 2018-03-31
      • 2017-09-10
      • 2018-04-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多