• 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: Immediate redirect of one page to another
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Immediate redirect of one page to another


  • Subject: Re: Immediate redirect of one page to another
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 10 Nov 2009 16:08:25 -0800

Mmmmmm coffee!


On Nov 10, 2009, at 4:00 PM, Paul Hoadley wrote:

On 11/11/2009, at 10:23 AM, Paul Hoadley wrote:

<wo:if condition="$shouldRedirect"> <wo:ERXRedirect component="$redirectTo" /> </wo:if>
<wo:else>
<wo:form multipleSubmit="true"> ... </wo:form>
</wo:else>


But clearly I can't. I want to handle it _in that page_. (Obviously I could make the preceding page choose, but ideally I want a solution where the present page decides whether to redirect itself or not.) What's the WO way to do this? I just can't see it.

Yep, not enough coffee.

public void appendToResponse(WOResponse response, WOContext context) {
if (shouldRedirect()) {
response.setContent(redirectTo().generateResponse().content());
} else {
super.appendToResponse(response, context);
}
}



Nothing to see here.


-- Paul.

w  http://logicsquad.net/
h  http://paul.hoadley.name/


_______________________________________________ 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

-- Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects








_______________________________________________
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: 
 >Immediate redirect of one page to another (From: Paul Hoadley <email@hidden>)
 >Re: Immediate redirect of one page to another (From: Paul Hoadley <email@hidden>)

  • Prev by Date: Re: Installing WO 543 on Linux
  • Next by Date: IE 7 and https problems
  • Previous by thread: Re: Immediate redirect of one page to another
  • Next by thread: IE 7 and https problems
  • Index(es):
    • Date
    • Thread