Struts ActionForward 重定向如何知道它是否必须重定向到 http 或 https?
How will Struts ActionForward redirect know if it has to redirect to http or https?
我在执行新操作时看到从 https 到 http 的混合内容重定向错误 ActionForward
。我无法弄清楚 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.
我在执行新操作时看到从 https 到 http 的混合内容重定向错误 ActionForward
。我无法弄清楚 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 theActionConfig
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.