Dont try to do that in a constructor of a page, way better is throwing
an exception

On 10/12/08, Uwe Schäfer <[EMAIL PROTECTED]> wrote:
> Zach Cox schrieb:
>> I need the browser to actually redirect the user to http://othersite.com
>> if
>> they go to http://mysite.com/something, regardless of if they click a link
>> or type it into the address bar.
>
> doesn´t this work there?
>
> class SomethingPage extends WebPage { // mounted accordingly
> public SomethingPage (){
> setResponsePage(new RedirectPage("http://othersite.com";));
> }}
>
> cu uwe
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to