【发布时间】:2012-10-01 21:29:02
【问题描述】:
我需要我的操作才能重定向到外部 url 地址,例如 http://google.com
现在我有:
<default-action-ref name="home" />
<global-results>
<result name="redirect" type="redirect">${targetUrl}</result>
</global-results>
如果在 targetUrl 我有 http://google.com 我的操作将调用主页,它不会重定向到谷歌。
我在这里看到了类似的问题 How to do dynamic URL redirects in Struts 2? 但我可以看到只有 url 的最后一部分被用作重定向的目的地。
你能帮帮我吗?
谢谢
【问题讨论】:
标签: redirect struts2 action httprequest