• 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: pageWithName in a same session
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pageWithName in a same session


  • Subject: Re: pageWithName in a same session
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 23 Nov 2004 13:48:43 -0800

Use a DirectAction. You can call the session() method in your action to get the session.

Chuck


On Nov 23, 2004, at 10:44 AM, Sébastien Gruhier wrote:

I still have an issue. In fact I didn't explain what I wanted to do. I want to give URL of action to a flash movie, to have a menu in flash instead of a menu in HTML. My idea was to generate a XML file for the flash movie with URL (WOActionURL). That's why I wanted to have the same session. With the session.context().clone() solution it works but the links dont work.

Any idea, or any other solution to solve this problem?

Thank you
Sebastien

Le 23 nov. 04, à 18:08, Sébastien Gruhier a écrit :

Thank you for all your anwsers.
The clone solution works great, that's really cool
The WOResponse theResponse = thePage.generateResponse(); does not work, same as using session().context().


Thanks again
Seb

Le 23 nov. 04, à 17:25, <email@hidden> a écrit :

Did you try session().context().clone().
 
You would do good simulating a request-response loop by calling ensureAwakeInContext() and sleep() on your component.
 
Pierre
-----Original Message-----
From: webobjects-dev-bounces+pierre.bernard=email@hidden [mailto:webobjects-dev- bounces+pierre.bernard=email@hidden]On Behalf Of Sébastien Gruhier
Sent: Tuesday, November 23, 2004 4:45 PM
To: email@hidden
Subject: pageWithName in a same session


 Hi,


I have a page that generates an XML file. I would like to be able to generate this page and get the XML result in a file but in the same session ID.
I have done this, but it's executed in a new session:



WOComponent thePage = component.pageWithName("MyXMLPage");

WOResponse theResponse = new WOResponse();
WORequest theRequest = new WORequest("HEAD", "", "HTTP/1.1", null, null, null);
WOContext theContext = new WOContext(theRequest);
thePage.appendToResponse(theResponse,theContext);
NSData theData = theResponse.content();



I tried to change the new WOContext(theRequest) by session().context() it works but the session is messed with my XML page.
Any idea to do it properly?



Thank you Sebastien


********************************************************************* *
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
village.net


This email sent to email@hidden
--
Practical WebObjects - a book for intermediate WebObjects developers who want to increase their overall knowledge of WebObjects, or those who are trying to solve specific application development 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


  • Follow-Ups:
    • Re: pageWithName in a same session
      • From: Sébastien Gruhier <email@hidden>
References: 
 >RE: pageWithName in a same session (From: <email@hidden>)
 >Re: pageWithName in a same session (From: Sébastien Gruhier <email@hidden>)
 >Re: pageWithName in a same session (From: Sébastien Gruhier <email@hidden>)

  • Prev by Date: Re: want to serve up some Web Services from a Mac - need suggestions
  • Next by Date: Re: want to serve up some Web Services from a Mac - need suggestions
  • Previous by thread: Re: pageWithName in a same session
  • Next by thread: Re: pageWithName in a same session
  • Index(es):
    • Date
    • Thread