You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Mike Kienenberger <mk...@gmail.com> on 2005/11/07 18:00:07 UTC

Re: Redirect to non view url

Can you do a pure servlet redirect instead?

On 11/8/05, Duncan Krebs <ap...@hostdepot.net> wrote:
>
> Hi,
> I'm trying to set a navigation case where after successfull login the user
> gets redirected to a non jsf link. The problem with the following entry in
> myfaces-config.xml is that the Jsf controller changes the .dp to .jsf and I
> don't want it to do that! Any ideas?
>
>
>
> <navigation-case>
>
> <!-- good login display web home-->
>
> <from-outcome>webloginsuccess</from-outcome>
>
> <!-- here it changes welcome.dp to welcome.jsf-->
>
> <to-view-id>/web/home/welcome/welcome.dp</to-view-id>
>
> <redirect/>
>
> </navigation-case>

Re: Redirect to non view url

Posted by Duncan Krebs <ap...@hostdepot.net>.
I tried doing a
response.redirect("mypage.dp");
but I get an error saying can not forward after a response has been
commited.


----- Original Message ----- 
From: "Mike Kienenberger" <mk...@gmail.com>
To: "MyFaces Discussion" <us...@myfaces.apache.org>
Sent: Monday, November 07, 2005 11:00 AM
Subject: Re: Redirect to non view url


Can you do a pure servlet redirect instead?

On 11/8/05, Duncan Krebs <ap...@hostdepot.net> wrote:
>
> Hi,
> I'm trying to set a navigation case where after successfull login the user
> gets redirected to a non jsf link. The problem with the following entry in
> myfaces-config.xml is that the Jsf controller changes the .dp to .jsf and
I
> don't want it to do that! Any ideas?
>
>
>
> <navigation-case>
>
> <!-- good login display web home-->
>
> <from-outcome>webloginsuccess</from-outcome>
>
> <!-- here it changes welcome.dp to welcome.jsf-->
>
> <to-view-id>/web/home/welcome/welcome.dp</to-view-id>
>
> <redirect/>
>
> </navigation-case>