On 6/27/01 5:30 AM, "Antonio Ortega" <[EMAIL PROTECTED]> wrote:
>
> Hi! I'm working on a webapp under Turbine,
> in a certain moment it interests me to redirect
> the page to another webapp INSIDE an action.
> How can I do it? I tried to use setRedirectUri
> method from RunData, but it seems to do nothing.
>
> This is what I have:
>
> http://localhost:8080/X/servlet/X/action/ChangeWebApp
>
> In "ChangeWebApp" action :
>
> data.setRedirectURI(http://localhost:8080/Y/index.html);
>
> but the code sended to the browser results:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=Content-Type content="text/html;
> charset=windows-1252"></HEAD>
> <BODY></BODY></HTML>
>
> What can I do? Waht I'm doing wrong?
> Are there more alternatives to do the same from an action?
>From within an action if you want to change the screen that a user
sees than use something like this:
RunData.setScreenTemplate("newTemplate.vm")
>
> Thanks!
> _________________
> Toni Ortega
> [EMAIL PROTECTED]
> _________________
>
--
jvz.
Jason van Zyl
http://tambora.zenplex.org
http://jakarta.apache.org/turbine
http://jakarta.apache.org/velocity
http://jakarta.apache.org/alexandria
http://jakarta.apache.org/commons
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]