You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Kun Niu <ha...@gmail.com> on 2010/03/25 11:03:12 UTC

Can I redirect user to another website using action result?

Dear all,

I'm trying to use struts2 to redirect user to another website out of my
tomcat box.
I wonder if action result supports http://xxx.com format.
Any hints are appreciated and thanks in advance.

Best regards,
Kun


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Can I redirect user to another website using action result?

Posted by Kun Niu <ha...@gmail.com>.
Thank you for your detailed reply.

Lukasz Lenart writes:
> 2010/3/25 Kun Niu <ha...@gmail.com>:
>   
>> Thank you for your fast reply.
>> I wonder if there's a manual so that I can checkout all the struts function?
>>     
>
> http://struts.apache.org/2.x/docs/guides.html
> http://struts.apache.org/2.x/docs/result-types.html
>
>
> Regards
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Can I redirect user to another website using action result?

Posted by Lukasz Lenart <lu...@googlemail.com>.
2010/3/25 Kun Niu <ha...@gmail.com>:
> Thank you for your fast reply.
> I wonder if there's a manual so that I can checkout all the struts function?

http://struts.apache.org/2.x/docs/guides.html
http://struts.apache.org/2.x/docs/result-types.html


Regards
-- 
Łukasz
http://www.lenart.org.pl/
Kapituła Javarsovia 2010
http://javarsovia.pl

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Can I redirect user to another website using action result?

Posted by Kun Niu <ha...@gmail.com>.
Thank you for your fast reply.
I wonder if there's a manual so that I can checkout all the struts function?

Lukasz Lenart writes:
> 2010/3/25 Kun Niu <ha...@gmail.com>:
>   
>> I'm trying to use struts2 to redirect user to another website out of my
>> tomcat box.
>> I wonder if action result supports http://xxx.com format.
>> Any hints are appreciated and thanks in advance.
>>     
>
> You have to results: redirect and redirectAction. The first one can
> redirect to any url you need!
>
>
> Regards
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Can I redirect user to another website using action result?

Posted by Lukasz Lenart <lu...@googlemail.com>.
2010/3/25 Kun Niu <ha...@gmail.com>:
> I'm trying to use struts2 to redirect user to another website out of my
> tomcat box.
> I wonder if action result supports http://xxx.com format.
> Any hints are appreciated and thanks in advance.

You have to results: redirect and redirectAction. The first one can
redirect to any url you need!


Regards
-- 
Łukasz
http://www.lenart.org.pl/
Kapituła Javarsovia 2010
http://javarsovia.pl

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org