i need my action to be able to redirect to outside url address, lets say for exemple http://google.com
Right now i have:
<default-action-ref name="home" />
<global-results>
<result name="redirect" type="redirect">${targetUrl}</result>
</global-results>
if in targetUrl i have http://google.com my action will call home page and it iwll not redirect to google.
I saw the similar question here How to do dynamic URL redirects in Struts 2? but I can see that only the last part of url is being used as a destination for the redirection.
can you please help me?
thanks