AW: [opencms-dev] Redirect?

Thomas Lieber Thomas.Lieber at pentasys.de
Wed Feb 28 19:10:30 CET 2001


Hi,

I think too this should work. 
But in my test it has no effect.

A system.out.println is executed before and after
this line!

Maybe there is another problem or another solution is required.
(Request Dispatcher ??) 



Thanks for your help

Thomas



-----Ursprüngliche Nachricht-----
Von: Stephan Hartmann [mailto:beffe at beffe.de]
Gesendet am: Mittwoch, 28. Februar 2001 18:38
An: opencms-dev at www.opencms.com
Betreff: Re: [opencms-dev] Redirect?

Hi Thomas,

do this:

in method
    public byte[] getContent(CmsObject cms, ....)

treat this cms like this:

cms.getRequestContext().getResponse().sendRedirect("http://to/whereever/you/
want");

i didn't try it but it should work.

cu
Stephan

-----Ursprüngliche Nachricht-----
Von: Thomas Lieber <Thomas.Lieber at pentasys.de>
An: <opencms-dev at www.opencms.com>
Gesendet: Mittwoch, 28. Februar 2001 09:10
Betreff: [opencms-dev] Redirect?


> Hello,
>
> does anyone know how to redirect from one page too another ?
>
> I mean e.g after checking input from an template in an derived class in
> public byte[] getContent(..) { }
>
> Or any other way
>
>
> Thanks for help
> Thomas
>
>



More information about the opencms-dev mailing list