You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by ro...@vodafone.com on 2004/11/30 15:40:52 UTC

HttpResponse.sendRedirect vs. ResponseWrapper

Hi all,

We used HttpResponse.sendRedirect to divert to other pages in some cases.  
Like for instance :
 HttpResponse httpResponse = (HttpResponse)response;
 httpResponse.sendRedirect(WebApp.rewriteURI("id:helpinaccessnetwork"));
But with Cocoon2.1.6, it seems that the response is of type
org.apache.cocoon.environment.wrapper.ResponseWrapper.
Is there another way of redirecting??

Kind regards,
Robby Pelssers


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


Re: HttpResponse.sendRedirect vs. ResponseWrapper

Posted by Ralph Goers <Ra...@dslextreme.com>.
The first thought that comes to mind is to get the HttpResponse object out
of the ObjectModel.

Ralph


robby.pelssers@vodafone.com said:
> Hi all,
>
> We used HttpResponse.sendRedirect to divert to other pages in some cases.
> Like for instance :
>  HttpResponse httpResponse = (HttpResponse)response;
>  httpResponse.sendRedirect(WebApp.rewriteURI("id:helpinaccessnetwork"));
> But with Cocoon2.1.6, it seems that the response is of type
> org.apache.cocoon.environment.wrapper.ResponseWrapper.
> Is there another way of redirecting??
>
> Kind regards,
> Robby Pelssers
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>


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