Are there any differences between this and the doRedirect() method ?
I think the setScreenTemplate() may not be able to parse any context when
used in a screen. However, it will work when called from an action.
I had this problem when I was setting this up in the SecureScreen.java
example from the tdk install. I had to stuff some data into the context and
for this I build a Login.java screen that gets called when the Login.vm
template is retrieved. Using a doRedirect() works (context gets parsed) but
not a setScreenTemplate().
Can someone enlighten this ? Thanks a lot.
-keng wong
> -----Original Message-----
> From: Jason van Zyl [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 27, 2001 5:48 AM
> To: [EMAIL PROTECTED]
> Subject: Re: How to use RunData.setRedirectUri
>
>
> 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")
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]