• 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: Main Redirect Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Main Redirect Question


  • Subject: RE: Main Redirect Question
  • From: <email@hidden>
  • Date: Wed, 25 May 2005 15:30:46 +0200
  • Thread-topic: Main Redirect Question

You might want to make your Main component a partial page component containing nothing but a switch component. The method the switch component is bound to might return a different component name depending on certain criteria.

Pierre

-----Original Message-----
From: webobjects-dev-bounces+pierre.bernard=email@hidden
[mailto:webobjects-dev-bounces+pierre.bernard=email@hidden]On
Behalf Of Mark Morris
Sent: Tuesday, May 24, 2005 10:48 PM
To: Brad Lees
Cc: WebObjects (Group)
Subject: Re: Main Redirect Question


Hello!  You could certainly just do this in WOApplication's
pageWithName(), instead of a WORedirect.  FIrst check if they're not
trying to get to Main, and return super(), to not add too much overhead
to the rest of the app, then do your checks and return the appropriate
page.  (You have access to session info via the context that's passed
as an argument to pageWithName.)

Regards,
Mark

On May 24, 2005, at 3:42 PM, Brad Lees wrote:

> I am trying to create an application that when you go to the main
> component, it can redirect you to another component based on certain
> criteria.  I am assuming I need to use a woredirect, but I am not sure  > how to take a component and turn it into a url to use the woredirect.   > I tried calling a function that returns the component that I want, but  > it does not go to the other page.
>
> Thanks
>
> Brad Lees
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> email@hidden
>
> 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




**********************************************************************
This email and any files transmitted with it are intended solely for
the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender
of this message. (email@hidden)
This email message has been checked for the presence of computer
viruses; however this protection does not ensure this message is
virus free.
Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
**********************************************************************

 _______________________________________________
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

  • Follow-Ups:
    • Re: Main Redirect Question
      • From: Mark Morris <email@hidden>
  • Prev by Date: Re: Using EO
  • Next by Date: Re: Webobjects, Tiger and xcode2
  • Previous by thread: Re: Main Redirect Question
  • Next by thread: Re: Main Redirect Question
  • Index(es):
    • Date
    • Thread