You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Sid Ferreira <si...@gmail.com> on 2009/01/19 11:38:34 UTC

Redirect and Forward

Im trying to forward or redirect the page programatically, for instance:
Opens Start.tml, if the ID is TRUE, it goes to List.tml, else it goes to
Login.tml

How to redirect?

-- 
Sidney G B Ferreira
Desenvolvedor Web - Tibox Innovations

Re: Redirect and Forward

Posted by Thiago HP <th...@gmail.com>.
On Mon, Jan 19, 2009 at 8:38 AM, Sid Ferreira <si...@gmail.com> wrote:
> Im trying to forward or redirect the page programatically, for instance:
> Opens Start.tml, if the ID is TRUE, it goes to List.tml, else it goes to
> Login.tml. How to redirect?

Put this method in your Start class:

Object onActivate() {
    if (needs to redirect)
        return Login.class;
    }
    else {
         return null;
    }
}
>
> --
> Sidney G B Ferreira
> Desenvolvedor Web - Tibox Innovations
>



-- 
Thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Redirect and Forward

Posted by Ulrich Stärk <ul...@spielviel.de>.
Sid Ferreira schrieb:
> Im trying to forward or redirect the page programatically, for instance:
> Opens Start.tml, if the ID is TRUE, it goes to List.tml, else it goes to
> Login.tml
> 
> How to redirect?
> 

http://tapestry.apache.org/tapestry5/guide/pagenav.html

Uli

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org