• 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
How to maintain session through a DirectAction call
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to maintain session through a DirectAction call


  • Subject: How to maintain session through a DirectAction call
  • From: Baiss Eric Magnusson <email@hidden>
  • Date: Thu, 31 Mar 2005 16:26:21 -0800

I have created the Main page so that it's widgets all invoke DirectActions, but now I <logIn> while in Main and all is fine, the Main page shows things that weren't available when not logged in.

However, if you then use one of the widgets the page refreshes and it has lost session information.

Here's the DirectAction method for the previous month button.

public WOActionResults prevMonthAction() {
String anID = getSessionIDForRequest( request() );
String month = request().stringFormValueForKey("curentMonthNum");
String year = request().stringFormValueForKey("curentYearNum");
int offset = calculateOffset( month, year );
Main main = (Main)pageWithName("Main");
main.setMonth( offset - 1 );
if ( anID != null ) { // if anID is not null there was a session around when the DA was called


***************** what can I do here so that Main will maintain session **************** }
return main;
}


----
Baiss Eric Magnusson
<http://www.Track-Your-Finances.com>
<http://www.CascadeWebDesign.com>

_______________________________________________
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


  • Prev by Date: Re: EOGeneralAdaptorException -- updateValuesInRowDescribedByQualifier
  • Next by Date: [SOLVED]: How to maintain session through a DirectAction call
  • Previous by thread: Re: EOGeneralAdaptorException -- updateValuesInRowDescribedByQualifier
  • Next by thread: [SOLVED]: How to maintain session through a DirectAction call
  • Index(es):
    • Date
    • Thread