• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WORedirect - how to get it to bring up a new page
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WORedirect - how to get it to bring up a new page


  • Subject: Re: WORedirect - how to get it to bring up a new page
  • From: Florijan Stamenkovic <email@hidden>
  • Date: Sun, 24 Jul 2005 16:47:26 +0200

Hi Baiss.


I use a WORedirect in a similar way to allow logout from my app. I just tested it with adding a binding (target = "_blank") to the hyperlink that invokes this method:


public WOComponent logout()
    {
        WORedirect wor = new WORedirect(context());
		wor.setUrl( "http://www.amazon.com"; );
	//Amazon is there for testing purposes...
		((Session)session()).myTerminate();
		return wor;
    }

So, same thing as you have. If we disregard session termination and your header setting. It worked fine for me, but maybe you are in a situation where you can not set the bindings on the element that invokes the action???

Hope you can use this way,
Flor


On Jul 21, 2005, at 23:55, Baiss Eric Magnusson wrote:

I would like the WORedirect call to bring up a new page. Just adding <moviePath() + "_blank" > won't work and the following doesn't work, any suggestions?

WORedirect redirect = new WORedirect( context() );
redirect.setURL( moviePath() );
// below added to try to get a new page generated
WOResponse r = redirect.generateResponse();
r.setHeader( "_blank", "target" );
redirect.appendToResponse( r, context() );


       return redirect;

----
Baiss Eric Magnusson
<http://www.Track-Your-Finances.com>
<http://www.CascadeWebDesign.com>


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >WORedirect - how to get it to bring up a new page (From: Baiss Eric Magnusson <email@hidden>)

  • Prev by Date: Re: EOModeler Question
  • Next by Date: EO duplication [was: Dealing with temporary EOs]
  • Previous by thread: WORedirect - how to get it to bring up a new page
  • Next by thread: [SOLVED] Re: WORedirect - how to get it to bring up a new page
  • Index(es):
    • Date
    • Thread