• 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
Redirect to a component action
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Redirect to a component action


  • Subject: Redirect to a component action
  • From: Francesco Romano <email@hidden>
  • Date: Sat, 22 Aug 2009 10:40:42 +0200

Hi..
I have a component action that does a check if the user is logged in..
If the user is not logged in, I redirect to a login page.
Now... I would like that, after the successful login, the first component action is called...
So.. something like this:


public WOActionResult saveCart() {
	if (session().user == null)
		->redirect to LoginPage
	else
		doSomething

The login action is a direct action..
How can I redirect from the login action to the saveCart action??

Thanks.

Francesco



_______________________________________________
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: Redirect to a component action
      • From: Hugi Thordarson <email@hidden>
  • Prev by Date: Re: Pages to PDF conversion on server from WO app
  • Next by Date: Re: Session... when are they created?
  • Previous by thread: Re: What does Clearing previous class descriptions do?
  • Next by thread: Re: Redirect to a component action
  • Index(es):
    • Date
    • Thread