gpt4 book ai didi

ssl - Struts ActionForward 重定向如何知道它是否必须重定向到 http 或 https?

转载 作者:太空宇宙 更新时间:2023-11-03 13:25:39 25 4
gpt4 key购买 nike

当我执行新的 ActionForward 时,我看到从 https 到 http 的混合内容重定向错误。我无法弄清楚 ActionForward 读取了什么以确定它必须转到 http 而不是 https。我有旧的 Struts v1.11。

最佳答案

ActionConfig我想,但它可以通过对 Struts 的扩展来获得。

An extension to version 1.1, named sslext, helps solve many of the HTTP/HTTPS switching issues. It extends the ActionConfig class, RequestProcessor, and Plugin classes to define a framework where developers may specify the transmission protocol behavior for Struts applications. Within the Struts configuration file, developers specify which action requests require HTTPS transmission and which should use HTTP. Developers can also specify whether to redirect "improperly-protocoled" requests to the correct protocol.

In addition to these extensions, the <html:link> and the <html:form> tags have been extended. In these extensions, the Struts actions specified in either of these tags are analyzed to determine the protocol that should be used in requesting that action. The HTML generated by these tags will specify the proper protocol. An additional custom tag is defined for allowing users to specify the transmission protocol for an individual JSP. This is most often used for form-based authentication pages.

关于ssl - Struts ActionForward 重定向如何知道它是否必须重定向到 http 或 https?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32127354/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com