Struts2 redirectAction不是https? [英] Struts2 redirectAction is not https?

查看:522
本文介绍了Struts2 redirectAction不是https?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的结果映射类型之一是redirectAction struts.xml
当时执行构建一个非安全链接...为什么?
i希望使用redirectAction构建安全链接
我该怎么办?

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>


推荐答案

使用重定向结果

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

这篇关于Struts2 redirectAction不是https?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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