• 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
Setting cookies or session values from DirectAction.java
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting cookies or session values from DirectAction.java


  • Subject: Setting cookies or session values from DirectAction.java
  • From: "Riaz Lalehzari" <email@hidden>
  • Date: Fri, 28 Mar 2003 13:35:59 +0000

Hello All,

I previously posted a message about setting session values from a directAction method and thank you to everyone who kindly replied with their comments. At the moment the situation I have is that a directAction method in this case is the FIRST thing I call for that application. but I don't know if that is the cause of the problem. I need to save the values received by the action method to be saved 'global', eg onto a session variable or cookie, so that all of the other pages in the site can read them, but in the action method I cannot use the same code I use in normal methods for making cookies or assigning session values. For example in my action method, during runtime it spits the dummy at this line giving a null value exception when I want to add the cookie (note, the cookie itself is not null):
-> context().response().addCookie(cookie);
Or when I would assign a value to a session variable from within the action method, the other pages seemed to be in a different session because they wouldn't even notice the change.
Has anyone created a cookie or assigned a session value from within an action method when that method was the first thing called in the application? Later on i'll try calling a dummy .wo page that then calls the action method to see if that will make a difference.


Riaz >[:)]

_________________________________________________________________
MSN Instant Messenger now available on Australian mobile phones. Go to http://ninemsn.com.au/mobilecentral/hotmail_messenger.asp
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Setting cookies or session values from DirectAction.java
      • From: Art Isbell <email@hidden>
  • Prev by Date: Authentication examples: https and JavaWOSecurityExampleX, SecureStoreX
  • Next by Date: Re: [Newbie] Display new objects in a WODisplayGroup
  • Previous by thread: Authentication examples: https and JavaWOSecurityExampleX, SecureStoreX
  • Next by thread: Re: Setting cookies or session values from DirectAction.java
  • Index(es):
    • Date
    • Thread